AncientBeast
AncientBeast copied to clipboard
don't scroll page
Using the mouse wheel over the game's canvas shouldn't scroll the page. Very useful when the game is not maximized and actually embedded in a page.
Same goes for the arrow keys.
Arrow key scrolling seems to be fixed in Chrome now, scrolling issue remains.
This might do it http://stackoverflow.com/questions/10313142/javascript-capture-mouse-wheel-event-and-do-not-scroll-the-page
I can fix this.
@clarkeadg awesome, feel free to do so! :+1:
@DreadKnight, I think this issue is not actual any more. At least I can't to repeat it
@TheSeally It's still an issue when the game is embedded, like on the homepage https://AncientBeast.com - but you would have to zoom in the page to make sure it's scrollable and problem only happens with the pre-match screen, not while actual gameplay.
I'll look on this problem. Thanks for additional info
I want to fix this,
The issue is that when you are in the game window, in game or in the pre game the page should not scroll right?
I want to fix this,
The issue is that when you are in the game window, in game or in the pre game the page should not scroll right?
@CyberBishop Yeah, that's the idea. Assigning you to it, soft deadline 2 weeks ⏳
and also when you click in the game iframe too, the arrow keys should not work
They're hotkeys in-game, but yeah, shouldn't be scrolling the game, just like Spacebar.
On Sun, Apr 16, 2023, 11:21 PM Oluwatimilehin Alabi < @.***> wrote:
and also when you click in the game iframe too, the arrow keys should not work
— Reply to this email directly, view it on GitHub https://github.com/FreezingMoon/AncientBeast/issues/741#issuecomment-1510477280, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEPNX6PUPFL74VW7SP5NBLXBRIC3ANCNFSM4AM7WF2Q . You are receiving this because you were mentioned.Message ID: @.***>