KeeganW / ti4

TI4 Map Generator - Generate a custom, unique, and balanced Twilight Imperium 4 galaxy map to use in your next game!
https://keeganw.github.io/ti4/
24 stars 19 forks source link

Map scroll is zooming in as well as scrolling up/down #81

Closed KeeganW closed 3 years ago

KeeganW commented 3 years ago

This doesn't really seem to be preventable in a reasonable way. Scrolling cannot be prevented since it is part of the function of the browser, and the event "onScroll" fires after the scroll actually happens. The main way to prevent it, overflow: hidden, is not reasonable because it would mean not moving around the map elsewhere. The automatic movement to the center seems to be the best reasonable solution to do. If more complaints come up of this issue, reopen and find some way to fix.