Fixed an issue with horizontal scrolling on Windows not moving canvas correctly#230
Fixed an issue with horizontal scrolling on Windows not moving canvas correctly#230
Conversation
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/statelyai/xstate-viz/3MWhZTFqQ8kFsevSXmSAiZxQ26Zd |
| if (isMac() || !e.shiftKey) { | ||
| canvasService.send(canvasModel.events.PAN(e.deltaX, e.deltaY)); | ||
| } else { | ||
| canvasService.send(canvasModel.events.PAN(e.deltaY, 0)); |
There was a problem hiding this comment.
After playing with this a little bit more I'm unsure if this is the best fix for the issue. It works for this specific case but I'm hesitant to say that it's universally good. It would be quite good if I could only apply this for mouse interactions but as far as I can tell they are indistinguishable from touchpad interactions.
…ng direction when trackpad is not used
fixes #225