Questions tagged [mousewheel]

A mouse wheel (or scroll wheel) is a hard plastic or rubbery disc (the "wheel") on a computer mouse that is perpendicular to the mouse surface. It is used for scrolling.

1072 questions
40
votes
5 answers

Smooth scrolling easing effect with mouse wheel

I recently came across this website http://www.ascensionlatorre.com/home, and I love the way the mouse wheel scrolling works - the easing is very smooth. I have been searching Google but I can't find anything similar. Does anybody have any…
idbranding
  • 729
  • 3
  • 10
  • 15
38
votes
9 answers

How can I scroll my panel using my mousewheel?

I have a panel on my form with AutoScroll set to true so a scrollbar appears automatically. How can I make it so a user can use his mouse wheel to scroll the panel? Thanks SO.
Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254
37
votes
9 answers

Disable scrolling on `` in React

This question was asked before but provided solution is just for jQuery, as I'm facing same problem in ReactJs. Is it possible to disable the scroll wheel changing the number in an input number field? I removed spinner arrows using CSS but mouse…
Faisal Janjua
  • 703
  • 1
  • 8
  • 15
33
votes
6 answers

Javascript: Capture mouse wheel event and do not scroll the page?

I'm trying to prevent a mousewheel event captured by an element of the page to cause scrolling. I expected false as last parameter to have the expected result, but using the mouse wheel over this "canvas" element still causes…
Jem
  • 6,226
  • 14
  • 56
  • 74
31
votes
8 answers

disable mouse wheel on itemscontrol in wpf

I have a usercontrol that has a scrollviewer, then a bunch of child controls like text boxes, radio buttons, and listboxes, etc inside of it. I can use the mouse wheel to scroll the parent scrollviewer until my mouse lands inside a listbox then,…
odyth
  • 4,324
  • 3
  • 37
  • 45
30
votes
5 answers

jquery vertical mousewheel smooth scrolling

I'm making a parallax website and I would like to make the page scroll smoother with the mousewheel for a better user experience. The best example I could get was this website: http://www.milwaukeepolicenews.com/#menu=home-page It would be great if…
gigi melcul
  • 301
  • 1
  • 3
  • 5
29
votes
7 answers

Mouse Wheel Event (C#)

I can't get the Mouse Wheel event in the main form. As a demo I came up with a simple example: public partial class Form1 : Form { public Form1() { InitializeComponent(); this.panel1.MouseWheel += new…
James Gralton
26
votes
3 answers

How can I differentiate a manual scroll (via mousewheel/scrollbar) from a Javascript/jQuery scroll?

UPDATE: Here is a jsbin example demonstrating the problem. UPDATE 2: And here is the fixed version thanks to fudgey. Basically, I have the following javascript which scrolls the window to an anchor on the page: // get anchors with href's that…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
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
24
votes
4 answers

firefox+jquery mousewheel scroll event bug

UPDATE Working fix as suggested by David (see below): replace $('.scrollMe').bind("mousewheel DOMMouseScroll", ...) with $('.scrollMe').bind("mousewheel DOMMouseScroll MozMousePixelScroll", ...) ORIGINAL POST Firefox 16.0.2 (latest)…
L2Eer
  • 477
  • 2
  • 6
  • 13
23
votes
3 answers

Smooth vertical scrolling on mouse wheel in vanilla javascript?

I am a huge fan for vanilla javascript, currently I am working on a project where I need to implement smooth scrolling on mouse wheel scroll. I want to implement this using vanilla JS. I found a jQuery snippet on doing some research which go like…
Adeel Imran
  • 13,166
  • 8
  • 62
  • 77
23
votes
5 answers

jquery mousewheel: detecting when the wheel stops?

I'm using Jquery mousewheel plugin and I would like like to be able to detect when the user has finished using the wheel. Similar functionality as the stop: event in the draggable stuff. Can somebody point me to the right direction?
Moustard
  • 347
  • 1
  • 3
  • 11
21
votes
5 answers

Detecting mousewheel on the x-axis (left and right) with Javascript

I know it's possible to detect up and down e.g. function handle(delta) { if (delta < 0) { alert('down'); } else { alert('up'); } } function wheel(event){ var delta = 0; if (!event) event = window.event; if…
20
votes
1 answer

How to fire mouse wheel event in Firefox with JavaScript?

I'm trying to do automated testing with WebDriver, but it currently has no ability to simulate mouse wheel events. As a workaround I'm trying to fire these events with JavaScript instead. I'm doing all my wheel experimenting on a straight HTML…
Justin Aquadro
  • 2,280
  • 3
  • 21
  • 31
20
votes
2 answers

How to increase the slow scroll speed on a JScrollPane?

I am adding a JPanel in a JScrollPane in my project. All is working fine, but there is one problem about mouse scroll using the mouse-Wheel in JPanel. It's speed is very slow on scrolling. How to make it faster? My code is : JPanel panel = new…
Ronak Jain
  • 2,402
  • 2
  • 24
  • 38
1
2
3
71 72