ember-mobiletouch
wants to become the ideal drop-in solution for handling touch regardless
of environment (desktop/mobile/cordova). It's being developed in conjunction with apps that
support all three environments using ember-cli-cordova
. 1.0.x
series is nearly entirely
a port of the event system set up in those apps currently.
That system got us pretty far, but it has some performance issues that could be fixed by reducing the number of Hammer instances generated, as well as some edge cases where nested Hammer instances produce highly undesirable behavior. It would also be nice to have an API more in line with Ember's conventions, which would also make it easier to prevent unintentional gesture collisions.
The current API (gestures hash) will continue to be supported until 2.0
. It will be deprecated
in favor of an "ember-centric" approach in which gestures are sent as events, trigger handlers
found in actions : {}
and can be targeted by action helpers {{action 'myActionHandler' on='tap'}}
tap
will become the default action target (instead of click
, which will be removed from Ember's
eventing along with other "platform specific" (mostly mouse) handlers. click
handlers and actions
with on="click"
will give deprecation notices.
- Automated Tests
- Consider adding a super fast "fastClick" event (touchstart based implementation)
- ??? FEAT: Trackpad gesture support ???
- ??? Global Edge Gestures (based on relative coordinates
["top", "center"]
) ???
- Remove Deprecations