Opened 12 years ago
Closed 7 years ago
#5967 closed bug (patcheswelcome)
Mac Safari Draggable after Ctrl Click
Reported by: | newbee | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.mouse | Version: | 1.8.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
Ctrl+Click on Mac acts as right click, but is reported as left click in Safari.
My remedy is in $.ui.mouse._mouseDown, change:
btnIsLeft = (event.which == 1)
to:
btnIsLeft = ((navigator.platform.match(/mac|win|linux/i) || ["other"])[0].toLowerCase() == "mac") ? (!event.ctrlKey && event.which == 1) : (event.which == 1).
Change History (8)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | ui.core → ui.mouse |
---|---|
Description: | modified (diff) |
comment:3 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Looks like this was addressed in Safari itself, can't reproduce.
comment:4 Changed 11 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Got that wrong. Ctrl+Click is not working properly. Right click (two-finger click) works fine...
comment:5 Changed 11 years ago by
Status: | reopened → open |
---|
comment:6 Changed 10 years ago by
Milestone: | TBD → 2.0.0 |
---|
comment:7 Changed 7 years ago by
The only solution I can think of (that doesn't include UA parsing) is listening for contextmenu
occurring immediately after mousedown
. This requires making the start phase asynchronous though, which will probably complicate the code quite a bit.
comment:8 Changed 7 years ago by
Resolution: | → patcheswelcome |
---|---|
Status: | open → closed |
After five years with only one report for this, I'm going to close as patches welcome. Safari causes way too many bugs for us to keep working around all these cases.
Sorry that the limit of attachment is so small, my recording is only 1M...