You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing events fired consistently but do not see isFirst set consistently on Pan and Pinch events. On Pan events, isFinal is set to true consistently, but on Pinch events isFinal is not set correctly.
It looks like eventType consistently returns a 4 a the end of an event, but does not consistently return a value of 1 when pan and pinch events start.
Other details:
Chrome 51.0.2704.63
Windows 10
I'm using HammerJS in a Polymer Web Component.
Here is my setup code:
var tlFrame = this.$.tlFrame;
var mc = new Hammer(tlFrame);
mc.on("pan", function(e) {
_self.handleTrack(e);
});
mc.get('pinch').set({ enable: true });
mc.on('pinch', function(e) {
_self.pinchScale = e.scale;
if (e.eventType === 1) _self.consoleLog('[PINCH] Start');
if (e.eventType === 4) _self.consoleLog('[PINCH] End');
});
When I do 4 pinch actions on my laptop touchscreen, this is the console output I see:
The text was updated successfully, but these errors were encountered:
I am seeing events fired consistently but do not see
isFirst
set consistently on Pan and Pinch events. On Pan events,isFinal
is set to true consistently, but on Pinch eventsisFinal
is not set correctly.It looks like
eventType
consistently returns a 4 a the end of an event, but does not consistently return a value of 1 when pan and pinch events start.Other details:
51.0.2704.63
Here is my setup code:
When I do 4 pinch actions on my laptop touchscreen, this is the console output I see:
The text was updated successfully, but these errors were encountered: