ember-gestures icon indicating copy to clipboard operation
ember-gestures copied to clipboard

gesture system cannot work with contenteditable element

Open magicismight opened this issue 9 years ago • 2 comments

The element with gestures system will cause contenteditable element lose focus on iOS.

magicismight avatar Jul 18 '16 06:07 magicismight

I believe that has to do with the inline style property touch-action: manipulation; on input elements that is added by ember-hammertime (which ember-gestures uses)

This article might be of use: https://webkit.org/blog/5610/more-responsive-tapping-on-ios/

@runspired will correct me where I am (completely) wrong - but thats cool, I'd like to learn as well

(perhaps you cannot double tap on an element with touch-action: manipulation; on iOS - so content editable maybe becomes problematic - all speculation though, dont take my word for it)

That's not an answer but take a look at the input field and note the inline style and with some research let us know your findings, if you have time

eriktrom avatar Jul 18 '16 06:07 eriktrom

contenteditable has so many caveats I'm really not sure where to begin, but you definitely should not be attempting to recognize gestures within one.

runspired avatar Jul 23 '16 03:07 runspired