html-next / ember-gestures

Gesture support for Ember Applications
MIT License
160 stars 57 forks source link

gesture system cannot work with contenteditable element #59

Open magicismight opened 8 years ago

magicismight commented 8 years ago

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

eriktrom commented 8 years ago

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

runspired commented 8 years ago

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.