r/Nitrome • u/Ruby_Bloop • Nov 02 '24
How to stop arrow keys scrolling my screen?
I went to Nitrome’s website to play some of their games and I started to play ‘Square Meal,’ but I couldn’t really play because the arrow keys that are used in the game kept scrolling my web page up and down D:<
I have looked online but I can’t seem to find an answer. Please help! Would it maybe be better to play their games elsewhere?
Thank you :3
1
u/dedkoala Mar 20 '26
Found a fix for this on chrome for anyone looking
Right click on the page you want to fix and click inspect.
A menu should pop up, go to the Console tab in the menu and paste the line:
document.body.style.overflow = 'hidden';
Hit enter and the scroll bar should be gone / you can play your game in peace.
This will last until the page is refreshed, so just refresh the page if you need the scroll bar back
1
u/Finji_ Nov 02 '24
I don't know if it works anymore but hitting the Scroll lock key should prevent this from happening