Closed
Bug 13093
Opened 25 years ago
Closed 1 year ago
Don't change cursor or do mouseovers during selection
Categories
(Core :: DOM: Selection, defect, P5)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
Future
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: michael.j.lowe, Assigned: sefeng)
References
(Blocks 1 open bug)
Details
(Keywords: helpwanted)
Attachments
(1 file)
During selection of some text if you move the mouse over a hyperlink the cursor changes from the I-beam to the pointing-hand. Instead, it should always stay as an I-beam.
Updated•25 years ago
|
OS: Windows NT → All
Hardware: PC → All
Comment 1•25 years ago
|
||
Confirmed that this is a cross-platform issue, and also present on Mac OS & Linux; adjusted platforms correspondingly. Thanks, Michael!
Reporter | ||
Comment 2•25 years ago
|
||
I also noticed that the cursor currently changes to a normal pointer when it is not over any text. I think what should happen is that once the mouse is down the cursor changes to an I-beam and stays that way no matter what it is over until the mouse is back up again.
Updated•25 years ago
|
Summary: Selection cursor incorrect over hyperlinks → Selection cursor incorrect over hyperlinksA
Comment 3•25 years ago
|
||
Agreed 100%; that's probably a side-effect of the fact that selection currently doesn't work in dead spaces (without text).
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Reporter | ||
Comment 6•25 years ago
|
||
Is this really a duplicate? bug 10236 deals only with the cursor over hyperlinks in the editor. This bug deals with the cursor while selecting text in the browser or the editor, which seems a different problem. Also read comment from [09/03/99 14:15]
Reporter | ||
Updated•25 years ago
|
Resolution: DUPLICATE → ---
Reporter | ||
Updated•25 years ago
|
Summary: Selection cursor incorrect over hyperlinksA → Cursor incorrect during selection
Comment 7•25 years ago
|
||
It doesn't matter if you are in the act of selecting or not. The cursor is controlled by CSS in both cases. So bug 10236, which is fixed, covers the editor case, which should never use the "pointer" hand cursor. So if you don't want the pointer when selecting in the browser, that is a different bug. I don't think CSS can respond differently during selecting, i.e., when the mouse is being dragged. Peter: Is that possible?
Comment 8•25 years ago
|
||
No, CSS has no notion of "dragging" state to select against. This seems like the code looking for different cursors should just not do anything during a drag select... (all in event state manager?)
Updated•25 years ago
|
Assignee: cmanske → mjudge
Status: REOPENED → NEW
Comment 9•25 years ago
|
||
So it seems the selection code will have to communicate with the style system to control this and the related problem in bug 12523, where the cursor is changing to inappropriate types and cannot be defeated with CSS settings. Sorry, Mike, but these problems will have to be solved in the selection/pres. shell code, not in our CSS files.
Comment 10•25 years ago
|
||
still happening in 9/17 build....Charley wanted me to verify if its working...
Reporter | ||
Comment 11•25 years ago
|
||
One more related bug. During selection, when the mouse is over a button or anything else where the hover style is set, the hover style should not be painted in this case.
Updated•25 years ago
|
Summary: Cursor incorrect during selection → Cursor incorrect during selection in browser
Comment 12•25 years ago
|
||
I added "in browser" to summary to remind us that this is not a problem in the editor because we override the "pointer" cursor over links.
Reporter | ||
Comment 13•25 years ago
|
||
Another related bug. During selection, when the mouse is over something where JavaScript on-mouse-over or similar event handlers have been set, the JavaScript handlers should not be called.
Reporter | ||
Updated•25 years ago
|
Summary: Cursor incorrect during selection in browser → Cursor incorrect during selection in browser & editor
Reporter | ||
Comment 14•25 years ago
|
||
Actually, this is a problem in both the editor and browser. In the editor, this has been fixed for links, but it is still a problem in whitespace (areas containing no text) where the cursor changes back to an arrow during selection. Other parts of this bug such as diabling hover style and JavaScript events also apply.
Reporter | ||
Updated•25 years ago
|
Summary: Cursor incorrect during selection in browser & editor → Inappropriate behaviour during selection in browser & editor
Reporter | ||
Comment 15•25 years ago
|
||
This bug is closely related to bug 15030 and vice versa.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 16•25 years ago
|
||
changing status to assigned, keeping this at m15, it can wiat till after beta push
Updated•25 years ago
|
Summary: Inappropriate behaviour during selection in browser & editor → Inappropriate cursors during selection in browser & editor
Target Milestone: M15 → M16
Comment 17•25 years ago
|
||
*** Bug 15030 has been marked as a duplicate of this bug. ***
Comment 18•25 years ago
|
||
[Note to self: please verify 15030 when verifying this bug.]
Comment 20•24 years ago
|
||
per beppe moving to polish
Comment 21•24 years ago
|
||
*** Bug 27318 has been marked as a duplicate of this bug. ***
Comment 22•24 years ago
|
||
*** Bug 38796 has been marked as a duplicate of this bug. ***
Comment 23•24 years ago
|
||
moving this to future and adding helpwanted keyword
Keywords: polish → helpwanted
Target Milestone: M19 → Future
Comment 24•24 years ago
|
||
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from elig@netscape.com to BlakeR1234@aol.com. After the many great years of service Eli has given to Mozilla, it's time for him to move on; he has accepted a position at Eazel. We'll be sad to see him go, and I'll do my best to fill his spot...
QA Contact: elig → BlakeR1234
Comment 25•24 years ago
|
||
[Resummarizing]
Summary: Inappropriate cursors during selection in browser & editor → Don't change cursor or do mouseovers during selection
Comment 27•22 years ago
|
||
It seems to me that the cursor should become an arrow to indicate that the selection is draggable (you can drag/copy/paste). However, if you do :-moz-selection { cursor: normal } selection becomes utterly impossible, so this rule is hard to enforce.
Blocks: 144938
Comment 28•21 years ago
|
||
still happening in build: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.5) Gecko/20030925
Comment 29•20 years ago
|
||
the ::-moz-selection { cursor: something; } bug is really the issue found in Bug 231894, which has a patch (by me) pending review.
Updated•19 years ago
|
Assignee: mjudge → selection
Status: ASSIGNED → NEW
QA Contact: tpreston
Updated•16 years ago
|
Assignee: selection → nobody
QA Contact: selection
Comment 30•3 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: P3 → P5
Assignee | ||
Comment 31•1 year ago
|
||
This seems can be fixed by adding some checks to nsTextFrame::GetCursor
to
see if (GetFrameSelection()->GetDragState() && GetContent()->AsElement()->IsLink() && (PreviousCursorIsText || PreviousCursorIsVerticalText) && NoUserProvidedStyleForLink) { return PreviousCursor; }
WDYT Emilio?
Flags: needinfo?(emilio)
Comment 32•1 year ago
|
||
GetContent()->AsElement()->IsLink()
would trivially crash because the content of text frames is a text node, but something along those lines might make sense. Couple notes:
- I don't think we want to look at the previous cursor, as it can be basically anything right? Plus even if you're not dragging the text cursor is an I-beam so...
- Is
GetDragState
enough / the right thing, so that it doesn't change the cursor on link dragging? - We probably want to also do it if the cursor is
pointer
more generally, as it'd be weird that doing:link { cursor: pointer }
would break this.
Chrome handles it here fwiw.
Flags: needinfo?(emilio)
Assignee | ||
Comment 33•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → sefeng
Attachment #9327807 -
Attachment description: WIP: Bug 13093 - Don't change cursor when mouseover links during selection → Bug 13093 - Don't change cursor when mouseover links during selection r=emilio
Status: NEW → ASSIGNED
Comment 34•1 year ago
|
||
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c9aa60ea6f4 Don't change cursor when mouseover links during selection r=emilio
Comment 35•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 1 year ago
status-firefox114:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•