liefswanson / liefswanson.github.io

Source for my portfolio
https://www.lief.info
MIT License
0 stars 0 forks source link

allow pan-x on zoom #1

Open liefswanson opened 6 years ago

liefswanson commented 6 years ago

hammerjs is overriding horizontal pan.

disable gestures when the user zooms.

when zoom === 1, reenable hammer gestures.

when zoom !==1 disable all hammer gestures, to allow default behaviour.

liefswanson commented 6 years ago

According to this thread

https://stackoverflow.com/questions/20410108/detect-browser-zoom-level

there are plenty of ways to detect zoom. However, none appear to be working.

This issue will have to wait I can find some working method of detecting zoom.

liefswanson commented 6 years ago

apparently it is almost impossible,

https://github.com/tombigel/detect-zoom

this issue will definitely sit here until I can think of a better way to handle this.