stuyam / pressure

:point_down::boom: JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
https://pressurejs.com
MIT License
2.91k stars 98 forks source link

The events do not fire in order cascading up and down the force line #14

Closed stuyam closed 8 years ago

stuyam commented 8 years ago

Sometimes "change" is called once before "start" and on leave "endDeepPress" is called after the "end" method. Make sure they go in order of:

-start -change -startDeepPress -change -endDeepPress -change -end

stuyam commented 8 years ago

Fixed this in the following commits: https://github.com/yamartino/pressure/commit/f41064dc3e109b1b1852fe334ca519872c154e39 https://github.com/yamartino/pressure/commit/d66979feb81c846b2100100c691fa011de9aeebc https://github.com/yamartino/pressure/commit/50344f9ee87db84992e1cc7ae321f2b8847a2aaf