Questions tagged [scrollwheel]

35 questions
202
votes
30 answers

Disable mouse scroll wheel zoom on embedded Google Maps

I am working on a WordPress site where the authors usually embed Google Maps using iFrames in most posts. Is there a way to disable the zoom via mouse scroll wheel on all of them using Javascript?
holiveira
  • 4,445
  • 9
  • 36
  • 39
91
votes
6 answers

Zoom Canvas to Mouse Cursor

I'm programming a HTML5 < canvas > project that involves zooming in and out of images using the scroll wheel. I want to zoom towards the cursor like google maps does but I'm completely lost on how to calculate the movements. What I have: image x and…
S2am
  • 927
  • 1
  • 7
  • 5
34
votes
3 answers

Using the mouse scrollwheel in GLUT

I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that?
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
25
votes
10 answers

Trigger 'dummy' mouse wheel event

Is there a way to trigger a scroll wheel event with an arbitrary delta. Just like jQuery does with 'click' like: $('#selector').trigger('click'); I need something like that just with an scrollwheel…
escusado
  • 445
  • 2
  • 5
  • 10
10
votes
2 answers

How to disable horizontal scrolling within virtualbox on Ubuntu guest, Windows 7 host?

This post is a duplicate from superuser.com, but since I had no answers, I started to doubt it was a user question and maybe more of a programming question (because of the configuration files), so here it is: I am using Windows 7 as Host, Ubuntu…
Steven Rosato
  • 2,174
  • 1
  • 21
  • 32
6
votes
2 answers

JavaScript function -- call single time with wheel event?

This code nearly works but has a slight problem which is where I'm hoping for your help. The Goal: This goal of this script is to call the parseScroll(); function one time when the user wheels using the mouse. The Problem: The code initially works.…
www139
  • 4,960
  • 3
  • 31
  • 56
4
votes
1 answer

How to disable mouse scroll wheel zooming in Google Annotated Timeline?

I'm using a Google Annotated Timeline chart and the mouse scrollwheel zooming of the time scale is getting annoying. I want to be able to scroll down my page of charts with my scroll wheel, but the timeline chart is intercepting the scroll wheel…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
4
votes
1 answer

Inertial Scrolling & -ScrollWheel: on OS X

THE PROBLEM: I have an NSScrollView. I'm using it to implement a custom "Table View" with rows of data that are actually NSViews. (Note: this is not an instance of NSTableView.) As I scroll vertically (there is no horizontal scrolling), I use a…
Bryan
  • 4,628
  • 3
  • 36
  • 62
4
votes
1 answer

Mouse scroll wheel input not being recognised in unity

Trying to get a zooming camera script to work and it's not. My other parts of the script function fine, except this one and I think it's something to do with mouse scroll wheel. void LateUpdate() { if…
Tim Hanson
  • 251
  • 1
  • 5
  • 17
3
votes
1 answer

Which xinput setting will reverse the direction of my mouse's scroll wheel?

I am attempting to follow the advice of this question, using the xinput tool to enable natural scrolling for my mouse's scroll wheel. I list my input devices via $ xinput list and get the following: $ xinput list ⎡ Virtual core pointer …
mherzl
  • 5,624
  • 6
  • 34
  • 75
2
votes
0 answers

How to disable scrolling in NSScrollView with enabled responsive scrolling

I need to disable programmatically scrolling in NSSrollView with enabled responsive scrolling. I try override isCompatibleWithResponsiveScrolling, then is possible to override scrollWheel and have enabled responsive scrolling but scrollWheel works…
kamil b
  • 43
  • 1
  • 6
2
votes
1 answer

psychopy record time of last mouse scroll wheel movement

I need to record the last time the scroll wheel was moved for each trial. I have code that does this for key presses (the lastTrialTime variable): lastTime = 0 # setting up to get RT at last key press while timer.getTime() >0: # while time…
Maria
  • 1,247
  • 1
  • 13
  • 21
2
votes
3 answers

Detect Beginning and Ending state of Scroll Wheel event in Cocoa

Cocoa provides many useful methods to detect the beginning and ending states of gestures and mouse clicks. For mouse clicks, we can easily override mouseDown: and mouseUp: methods. However, we don't seem to have a way to do the same for mouse…
HuaTham
  • 7,486
  • 5
  • 31
  • 50
2
votes
1 answer

How do I capture and cancel a mouse scroll event using NSEvent framework in Mac OSX?

I'm using NSEvent with global monitoring, to listen to mouse scroll events. However, the event is still being passed to other applications as usual. I would like to cancel the event so that only my application can interpret the event then cancel it…
2
votes
2 answers

Vertical scroll value resets on reboot/log-off

I have a user that would like to have value for vertical scrolling to be set to a certain number. When they've set the wanted value, it works ... Until they log off or reboot. The odd thing is that the horizontal scroll value will remain to set…
Sharain
  • 121
  • 1
  • 4
1
2 3