Ryan King
05/26/2020, 4:21 PMMaikel
05/26/2020, 4:54 PMRyan King
05/26/2020, 5:21 PMMaikel
05/26/2020, 5:41 PMIvan Reese
Ryan King
05/26/2020, 6:43 PMIvan Reese
nav.cofee
, with the other files handling each different kind of input, mapping it into the domain I care about. We support zooming/scrolling with:
• 1 finger scroll and 2 finger pinch zoom on mobile
• arrow keys to scroll, +/- to zoom
• mouse drag to scroll, wheel to zoom
• trackpad drag to scroll, 2-finger scroll to zoom
• trackpad pinch-zoom in safari and FF
• touchscreen windows 1-finger to scroll (can't remember if zoom is supported)
• programatic control using custom GUI, etc
• other stuff I'm forgetting
If you want to play with a simulation that uses this framework, here's a free one on our website: https://www.lunchboxsessions.com/materials/fixed-variable-displacement-pumps/efficiency-of-different-pump-designs-simulation
There's a lot of complexity in getting this to work, and it also explicitly ignores some cases we don't care about, so I'm not sure if it'll be helpful. At the very least, it's an existence proof that you can cover most kinds of input in a way that should allow everyone to scroll and zoom in a way that feels fairly comfortable.
If you do end up rummaging through this code and have questions, feel free to DM me if you want to keep the noise level in this thread low.Ryan King
05/26/2020, 8:18 PM