mousewheel

Make tabpage not process mousewheel events (C#)

拜拜、爱过 提交于 2019-12-10 11:47:31
问题 I have made a MDI (tabbed) application that uses PictureBoxes inside TabPages. The picturebox is sometimes larger then the tabpage, so scrollbars appear. It is written in C# using Windows Forms. Inside my tabpage, I capture and process mouse wheel events in the MouseWheel event (i use it to rotate some objects I draw in the picturebox). But when I have the scrollbars, when I rotate the mouse wheel, my objects rotate, but the tabpage also scrolls down. How can I make the tabpage not process

How to prevent focused control from scrolling when the mouse isn't over it?

Deadly 提交于 2019-12-10 11:33:22
问题 Refer to this prior related question. While the answers there do work, I have further issues when it comes to certain types of controls such as a TDBGrid . If the TDBGrid currently has focus, but the mouse is pointed over another control to scroll, the TDBGrid scrolls anyway, thus resulting in two different controls scrolling at the same time. This happens in every single solution which I've found so far related to scrolling the control underneath the mouse. How can I prevent this behavior

jquery vertical scroll with mousewheel

北城以北 提交于 2019-12-10 10:53:48
问题 I have div containing images that I want to scroll up and down using the jquery mousewheel plugin. Not sure how to do this, the documentation is not very helpful would be grateful for any suggestions. <div class="innerScroll" style="float:left;width:448px;height:500px; overflow:hidden;"> <div class="mediaPanel"><img src="media/poster_silence.jpg" alt="" /></div> <div class="mediaPanel"><img src="media/poster_comingsoon.jpg" alt="" /></div> <div class="mediaPanel"><img src="media/poster

Bind Mouse Wheel To Jquery UI Slider

倾然丶 夕夏残阳落幕 提交于 2019-12-10 10:15:17
问题 I did searches and there were a few similar posts but I can't seem to get it to work. I know that its a cliche but I am quite new to JQuery and JQuery UI as my core skills is PHP, so any help is greatly appreciated. Below are the codes that I have for the JQuery vertical slider. $("#VerticalScrollBar").slider({ orientation: "vertical", change: VerticalHandleChange, slide: VerticalHandleSlide, min: -100, max: 0 }); and the functions function VerticalHandleChange(e, ui) { var maxScroll = $("

How can I make WPF ScrollViewer middle-click-scroll?

和自甴很熟 提交于 2019-12-09 09:18:30
问题 Clicking the middle mouse button (aka: mouse wheel) and then moving the mouse down slightly lets users scroll in IE, and most Windows apps. This behavior appears to be missing in WPF controls by default? Is there a setting, a workaround, or something obvious that I'm missing? 回答1: I have found how to achieve this using 3 mouse events ( MouseDown , MouseUp , MouseMove ). Their handlers are attached to the ScrollViewer element in the xaml below: <Grid> <ScrollViewer MouseDown="ScrollViewer

Speed up mouse wheel in jScrollPane (jQuery)

泪湿孤枕 提交于 2019-12-09 05:23:08
问题 I have a div with a fixed height and in it a ul-list and many li-items. I apply to the div a jScrollPane for which I want to customize the appearance of the scrollbar. My code is like: $(function() { $('.myDiv').jScrollPane( { showArrows: true, arrowScrollOnHover: true, wheelSpeed: 120 }); }); As jScrollPane I use the scripts of http://jscrollpane.kelvinluck.com and it is kind of working. But the speed of the mouse wheel (velocity of scrolling) is much too slow although I tried to set the

How can I handle the mouse wheel click event in WPF?

夙愿已清 提交于 2019-12-08 19:21:36
问题 I want to close a tab in my tab control when the mouse wheel is clicked. How can I capture this event in WPF? EDIT: Here's the code: private void tabMain_MouseDown(object sender, MouseButtonEventArgs e) { if(e.ChangedButton == MouseButton.Middle && e.ButtonState == MouseButtonState.Pressed) { MessageBox.Show("Middle button clicked"); } } 回答1: Mousewheel is actually the MiddleButton, So the condition for Wheel click on a MouseDown event is ChangedButton == Middle && ButtonState == Pressed 回答2:

Vimeo iFrame Stealing Mouse Wheel Event on Firefox

依然范特西╮ 提交于 2019-12-08 19:21:32
问题 I made this example here: http://jsbin.com/pokahec/edit?html,output // creates a global "addWheelListener" method // example: addWheelListener( elem, function( e ) { console.log( e.deltaY ); e.preventDefault(); } ); (function(window,document) { var prefix = "", _addEventListener, onwheel, support; // detect event model if ( window.addEventListener ) { _addEventListener = "addEventListener"; } else { _addEventListener = "attachEvent"; prefix = "on"; } // detect available wheel event support =

What is the best method for implementing mouse wheel activity in Delphi VCL forms?

丶灬走出姿态 提交于 2019-12-08 13:39:31
问题 As a long time user of Delphi 7, I've rolled my own mouse wheel handling in a few controls but lately I've noticed that some recent applications only need the mouse cursor to be placed over a control (e.g. a list box or tree view) for the mouse wheel activity to cause that control to scroll. This feels nice (as opposed to having to click focus a control before it responds to the wheel). Now I've moved to Delphi 2010 I'm wondering what is the 'correct' behavior? And what can I use in Delphi

Javascript scrollbar class and mousewheel speed in different browsers

久未见 提交于 2019-12-07 15:15:47
问题 I'm getting many reports that the mousewheel behaves differently in different browsers when using this scrollbar class. In some browsers (like Firefox) it's extremely slow while in others (mostly newer versions of Safari on Snow Leopard) it's perfect. Any ideas what's going on here and how to fix it? I'm using the Mootools library. One line to pay attention to here is the wheel: (Browser.firefox) ? 20 : 1 line. This is where you set the speed or steps for the mousewheel. Here it is set up in