Disable middle-click scroll

Get help using Construct 2

Post » Wed Jan 23, 2013 5:35 am

I've some events in my project that are triggered with the middle mouse button.
But I also have some graphics around the game canvas, and some users have a resolution slightly too low to display everything, hence the scrolling.
Now is there a way to disable scrolling, along with the scroll-circle thingie that pops up, when the user use a middle-click inside the game canvas?
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Wed Jan 23, 2013 5:01 pm

You can change "Fullscreen in browser:" to "scale" or "letterbox scale" on the project Configuration settings to get rid of the scroll.
B
33
S
4
G
5
Posts: 9
Reputation: 5,535

Post » Wed Jan 23, 2013 9:50 pm

Thanks for the suggestion, but I'm not willing to use the fullscreen mode at all here, it's the container page with other content that scrollslemo2013-01-23 21:51:22
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Thu Jan 24, 2013 8:49 pm

Another related issue:
When that same low-resolution-screen player press "space", as I mapped it to the jump, the window also scrolls as it's the default browser behavior
(anyone can try it by resizing the browser window)

The main question is how to isolate the interactions in the game, so they won't be mistaken for browser actions...

EDIT: okay I figured it out for the space bar from here
The same method doesn't work for the middle click scroll though...
@Ashley Could we have the same behavior in C2 for the mouse events?lemo2013-01-24 21:20:00
B
20
S
5
G
8
Posts: 325
Reputation: 6,473


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, Laurent, makkancs and 24 guests