nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.95k stars 482 forks source link

Mouse wheel scrolling is reversed on web version #1568

Open Weeppiko opened 3 years ago

Weeppiko commented 3 years ago

Both mouse() API and the editors are affected by this issue

ChildishGiant commented 3 years ago

This is a duplicate of #713 but that's closed even though it's still an issue

nesbox commented 3 years ago

Can't reproduce it in chrome based browsers, but saw it some time ago on other versions and still think it's a SDL2 lib issue, not a TIC-80 issue.

symbolisch1234 commented 3 years ago

i am on ubuntu, can reproduce on both chromium and firefox, most current versions.

my system setting is traditional scrolling, which tic80 locally respects. on both chromium and firefox the webplayer scolling is apple-style/"natural", that is reversed from my system settings.

joshgoebel commented 2 years ago

@Weeppiko @ChildishGiant Which native platform is your browser running on? I wonder if this is limited to Linux, etc...

ChildishGiant commented 2 years ago

https://github.com/nesbox/TIC-80/issues/713#issuecomment-850957926

0.80.1344 on tic80.com Chromium (Including new edge) & Firefox Windows 10

I have a run a dual boot and various browsers and have always noticed this. I can try to replicate again soon.

blinry commented 2 years ago

I tested this on two Linux machines: In Chromium, scrolling works as expected. In Firefox, scrolling is reversed.

nesbox commented 2 years ago

I still think this is a sdl2 library bug, but we could find a workaround on the JS side.