Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Camera scrolling actions are jarring / non-functional on certain browsers #267

Open Zemanzo opened 4 years ago

Zemanzo commented 4 years ago

Expected behavior Free camera: The moving speed of the camera should gradually change whilst using the mousewheel. Tracking camera: The zoom level should change whilst using the mousewheel.

Actual behavior Free camera: The moving speed of the camera changes very quickly, resulting in a loss of fine control. Tracking camera: The zoom level does not change whatsoever.

Reproduction steps for free camera

  1. Select the free camera setting.
  2. Click and hold on the viewport.
  3. Use WASD to move around, and start scrolling.
  4. See jarring changes in movement speed.

Reproduction steps for tracking camera

  1. Select the tracking camera setting.
  2. Add a marble and start tracking it.
  3. Scroll whilst having the cursor over the viewport.
  4. Observe no zoom level changes.

Platform OS: Windows 10 Browser version: Google Chrome v78.0.3904.108 Build version: 1.3.1