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
292
votes
10 answers

Using the scrollwheel in GNU screen

How can I set up GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer? I tried to Google about this, but most hits were on how to allow applications inside screen to use the scrollwheel.
JesperE
  • 63,317
  • 21
  • 138
  • 197
161
votes
10 answers

Normalizing mousewheel speed across browsers

For a different question I composed this answer, including this sample code. In that code I use the mouse wheel to zoom in/out of an HTML5 Canvas. I found some code that normalizes speed differences between Chrome and Firefox. However, the zoom…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
153
votes
15 answers

Get mouse wheel events in jQuery?

Is there a way to get the mouse wheel events (not talking about scroll events) in jQuery?
thejh
  • 44,854
  • 16
  • 96
  • 107
112
votes
9 answers

How do I speed up the scroll speed in a JScrollPane when using the mouse wheel?

I see the method JScrollPane.setWheelScrollingEnabled(boolean) to enable or disable the mouse wheel scrolling. Is there any way to adjust the speed of the scrolling, though? It is, in my opinion, ludicrously slow. No matter what size I make the…
Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
99
votes
14 answers

How to prevent page scrolling when scrolling a DIV element?

I have reviewed and tested the various functions for preventing the body ability to scroll whilst inside a div and have combined a function that should work. $('.scrollable').mouseenter(function() { $('body').bind('mousewheel DOMMouseScroll',…
Walrus
  • 19,801
  • 35
  • 121
  • 199
78
votes
3 answers

Mousewheel event in modern browsers

I'd like to have clean and nice JavaScript for mousewheel event, supporting only the latest version of common browsers without legacy code for obsolete versions, without any JS framework. Mousewheel event is nicely explained here. How to simplify it…
Jan Turoň
  • 31,451
  • 23
  • 125
  • 169
74
votes
6 answers

ScrollViewer mouse wheel not scrolling

I am currently working on my first WPF project and trying to make a ListView scrollable. At first I thought this could be easily done by simply limiting the ListView's width and height and thus forcing a scrollbar to appear automatically whenever…
sadeniju
  • 743
  • 1
  • 5
  • 6
70
votes
4 answers

C# - how do I prevent mousewheel-scrolling in my combobox?

I have a combobox and I want to prevent the user from scrolling through the items with the mousewheel. Is there an easy way to do that? (C#, VS2008)
Pygmy
  • 1,856
  • 2
  • 18
  • 13
65
votes
10 answers

tkinter: binding mousewheel to scrollbar

I have this scroll-able frame (frame inside canvas actually). import Tkinter as tk class Scrollbarframe(): def __init__(self, parent,xsize,ysize,xcod,ycod): def ScrollAll(event): …
Chris Aung
  • 9,152
  • 33
  • 82
  • 127
58
votes
6 answers

Use mouse scroll wheel in Vim

My .vimrc has the following lines set mouse=a map map But when I scroll up using the mouse wheel, I'd get the text above Vim. For example, I'd get my terminal session text if I'd just started Vim. I'm…
Kit
  • 30,365
  • 39
  • 105
  • 149
54
votes
6 answers

How can I make mousewheel work in VB6 IDE?

One annoying behavior of the VB6 IDE editor, especially when switching back to it from more recent tools like VS.NET, is that it doesn't recognize the mousewheel! Maybe VB6 was brought out when most mice didn't have one, but is there a way to fix…
Starwatcher
  • 832
  • 1
  • 6
  • 8
45
votes
5 answers

What is the height of a "line" in a wheel event? (deltaMode = DOM_DELTA_LINE)

The wheel event in Firefox >= 17 has a deltaMode property. With the OS/mouse I'm using, it's set to 1 (or DOM_DELTA_LINE). This setting means that the deltaX and deltaY event values are measured in lines and not pixels. Sure enough, if I pretend the…
JKS
  • 3,710
  • 2
  • 29
  • 40
44
votes
5 answers

Child elements of scrollviewer preventing scrolling with mouse wheel?

I'm having a problem getting mouse wheel scrolling to work in the following XAML, which I have simplified for clarity:
Tom
  • 627
  • 1
  • 5
  • 11
43
votes
2 answers

Remove HTML scrollbars but allow mousewheel scrolling

Possible Duplicate: How to disable browser or element scrollbar, but allow scrolling with wheel or arrow keys? I was able to disable vertical scrollbars in a grid by setting the CSS property overflow-y: hidden. However, this removed the ability…
Sameer
  • 751
  • 3
  • 9
  • 17
42
votes
8 answers

How to direct the mouse wheel input to control under cursor instead of focused?

I use a number of scrolling controls: TTreeViews, TListViews, DevExpress cxGrids and cxTreeLists, etc. When the mouse wheel is spun, the control with focus receives the input no matter what control the mouse cursor is over. How do you direct the…
avenmore
  • 2,809
  • 3
  • 33
  • 34
1
2 3
71 72