jahu00 / Rikaikyun

Rikaichan based Phonegap app for reading Japanese text
5 stars 2 forks source link

Disable long tap select from triggering #5

Closed jahu00 closed 8 years ago

jahu00 commented 9 years ago

Current solutions are both javascript and css based. They only work properly on PC Chrome, but on normal android devices select options will still show up for a second. Current solutions fail entirely on T68.

jahu00 commented 9 years ago

Explicitly setting -webkit-touch-callout: none; on an element does appear to block long tap select on some devices, but unfortunately it does not work on T68. Additionally this method makes it impossible to select text within element programatically. Setting it on a container does appear to block quick tap selects though.

jahu00 commented 8 years ago

Capturing touchstart and then emulating a click should solve all select menu and text selection from problems.

jahu00 commented 8 years ago

Fixed alongside #39.