AncientBeast icon indicating copy to clipboard operation
AncientBeast copied to clipboard

don't scroll page

Open DreadKnight opened this issue 10 years ago • 8 comments

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.

DreadKnight avatar Mar 08 '14 07:03 DreadKnight

Same goes for the arrow keys.

DreadKnight avatar Mar 08 '14 07:03 DreadKnight

Arrow key scrolling seems to be fixed in Chrome now, scrolling issue remains.

DreadKnight avatar Nov 08 '14 20:11 DreadKnight

This might do it http://stackoverflow.com/questions/10313142/javascript-capture-mouse-wheel-event-and-do-not-scroll-the-page

DreadKnight avatar Nov 14 '14 07:11 DreadKnight

I can fix this.

clarkeadg avatar Nov 15 '19 08:11 clarkeadg

@clarkeadg awesome, feel free to do so! :+1:

DreadKnight avatar Nov 15 '19 08:11 DreadKnight

@DreadKnight, I think this issue is not actual any more. At least I can't to repeat it

TheSeally avatar Oct 03 '21 14:10 TheSeally

@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.

DreadKnight avatar Oct 03 '21 14:10 DreadKnight

I'll look on this problem. Thanks for additional info

TheSeally avatar Oct 03 '21 14:10 TheSeally

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 avatar Apr 16 '23 19:04 CyberBishop

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 ⏳

DreadKnight avatar Apr 16 '23 20:04 DreadKnight

and also when you click in the game iframe too, the arrow keys should not work

CyberBishop avatar Apr 16 '23 20:04 CyberBishop

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: @.***>

DreadKnight avatar Apr 16 '23 21:04 DreadKnight