Open
Bug 1327984
Opened 8 years ago
Updated 4 years ago
Cursor is displayed as "default" instead of "col-resize" in some cases when I drag HTML replacement for XUL splitters
Categories
(DevTools :: Shared Components, defect, P3)
DevTools
Shared Components
Tracking
(firefox50 unaffected, firefox51 fix-optional, firefox52 fix-optional, firefox53 fix-optional)
NEW
Tracking | Status | |
---|---|---|
firefox50 | --- | unaffected |
firefox51 | --- | fix-optional |
firefox52 | --- | fix-optional |
firefox53 | --- | fix-optional |
People
(Reporter: arni2033, Unassigned)
References
Details
(Keywords: regression)
>>> My Info: Win7_64, Nightly 53, 32bit, ID 20161119030204 (2016-11-19)
STR_1:
1. Open devtools -> inspector or devtools -> debugger
2. Hover mouse over any vertical splitter, hold left mouse button
3. Move mouse to the content area
AR: Displayed cursor is "default"
ER: Displayed cursor should be "col-resize", as it was before regression bug 1260552 & Co
STR_2:
1. Open devtools -> inspector or devtools -> debugger. Open split console
2. Hover mouse over any vertical splitter, hold left mouse button
3. Move mouse to the split console@ Jan Honza Odvarko [:Honza] (PTO: 12/09-01/01):
It seems that this is a regresion caused by your change. Please have a look.
Honza, maybe a quick one to fix or mentor? Not sure if it warrants regression tracking.
status-firefox50:
--- → unaffected
status-firefox51:
--- → affected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
Component: Developer Tools → Developer Tools: Shared Components
Flags: needinfo?(odvarko)
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Hmm, this seems to be tricky. I don't know how to set the cursor also for the content document and any other opened document the mouse can hover over. This could also involve RDP communication, which seems ascrazy.
Is there any way how to force mouse-cursor no matter what the mouse is hovering over?
@Nicolas: any tips?
Note that currently, the cursor is set only for the document where the splitter lives.
Another issue I found when testing this:
1) Open DevTools and select the Inspector panel
2) Start changing width of the Sidebar (using vertical splitter)
3) Move mouse over to the content (page) document area
4) Release the mouse button
5) Move mouse back to the Inspector panel -> the dragging is still in progress even if the mouse button isn't pressed -> BUG
This is because "mouseup" event in't handled by the splitter more precisely Draggable component (since it happened in different documen) and the splitter 'thinks' that the dragging is still in progress. This seems to be a bit more important and also less hard to fix.
Honza
Flags: needinfo?(odvarko) → needinfo?(chevobbe.nicolas)
Comment 3•8 years ago
|
||
For the cursor, I think that if we set the css cursor property on the html element, it will keep the same cursor as long as the mouse button is down.
I set up a little example here : http://codepen.io/nchevobbe/pen/WRxpvO .
If you only hover the body (in red), it show you a move cursor, but if you go outside, it revert to the appropriate cursor on the element you hover.
Now, if you click on the red background body, and then, with the mouse button still pressed, move to the editor, or outside the firefox window, you still have the move cursor.
We could some thing like that by adding a class to the html element the splitter lives in (.splitter-moving , or something similar), and then change the cursor in CSS ( `html.splitter-moving { cursor: resize }` ) and it should work.
> This is because "mouseup" event in't handled by the splitter more precisely Draggable component (since it happened in different documen) and the splitter 'thinks' that the dragging is still in progress. This seems to be a bit more important and also less hard to fix.
We had to deal with such bug in the inspector when dragging node, if the mouse was released over the content window. The fix, if I remember correctly was to have to mousemove event declared on the window, which would track and capture mouse event even if the mouse is out of the firefox window (or the content window).
Flags: needinfo?(chevobbe.nicolas)
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
Severity: normal → S3
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•