mousewheel

disable mouse wheel scrolling while cursor over flex app?

◇◆丶佛笑我妖孽 提交于 2019-12-01 00:21:19
Is it possible to disable mousewheel scrolling on my webpage while the cursor is over my flex application? My flex application is a map that allows user to zoom in and out using the mousewheel; however, when I put my flex app onto my webpage, the scrollwheel causes the page to scroll instead of zooming in and out... Edit: I have added sounds to my flex app and it tells me my mouse events are correct. I have also added an alertbox to the javascript so that I know the MyApp.initialize function is being called but the mousewheel is still scrolling the webpage instead of my flex app. This is the

Can the mouse wheel be used while dragging/dropping?

家住魔仙堡 提交于 2019-12-01 00:20:02
问题 In WinForms, after calling a DoDragDrop to start dragging an item, controls no longer scroll with the mouse-wheel, and the control's MouseWheel event is no longer called, until the user drops whatever he is dragging. Is there a way to get the mouse wheel to work while dragging? 回答1: You could get a global MouseWheel with a keyboard hook. using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Windows.Forms; using Microsoft.Win32.SafeHandles; using BOOL =

Can't send new scroll direction with SendInput in LowLevelMouseProc call

拈花ヽ惹草 提交于 2019-11-30 21:20:33
I'm calling the below code and it appropriately is hooked onto WM_MOUSEWHEEL. The problem I'm having is that even though I'm only sending the scroll message in one direction (-120), the scroll wheel works just as expected. I've set breakpoints in it and the ifs and such work as expected. private delegate IntPtr LowLevelMouseProc(int nCode, IntPtr wParam, IntPtr lParam); private static IntPtr HookCallback( int nCode, IntPtr wParam, IntPtr lParam) { if (nCode >= 0 && MouseMessages.WM_MOUSEWHEEL == (MouseMessages)wParam) { MSLLHOOKSTRUCT hookStruct = (MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam,

Disable mouse scroll wheel in combobox VB.NET

為{幸葍}努か 提交于 2019-11-30 13:09:20
Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? For my purposes, combobox is all I need the answer for. I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously. The ComboBox control doesn't let you easily override behavior of the MouseWheel event. Add a new class to your project and paste the code shown below. Compile. Drop the new control from the top of the toolbox onto your form. Friend

jQuery Mousewheel Scroll Horizontally

做~自己de王妃 提交于 2019-11-30 07:09:02
问题 I'm currently developing a horizontally website that can enable my mouse scroll to scroll to the left and right... My jQuery included sequence: <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <!--jquery validation script--> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script> <!--Smooth Scroll--> <script type="text/javascript" src="js/jquery

disable the CTRL/Wheel zoom effect at runtime

隐身守侯 提交于 2019-11-30 06:59:21
问题 How do you disable the ctrl/wheel zoom effect with css or javascript on certain elements. I create a menu bar that gets distorted when the zoom effect is applied. I would like to disable it for just certain elements. 回答1: Better idea: design your layout so that it's robust enough to handle changes like this. You can't disable them, even if you fix the font size (which you should never do in the first place), so you might as well respond to zooming gracefully. The fact is, if all elements are

How to fire mouse wheel event in Firefox with JavaScript?

一世执手 提交于 2019-11-30 06:18:54
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 page right now, not within the WebDriver framework. I'm specifically trying to fire a mouse wheel event on a scrolling div element. So far I've been able to do this with Chrome and IE9, but I can't seem to get anything to work in Firefox (5.x). I'm using the following cross-browser code to detect when mouse wheel events are fired, which I snagged off the

Trigger 'dummy' mouse wheel event

别来无恙 提交于 2019-11-30 00:31:04
问题 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 like: $('#selector').trigger('DOMMouseScroll',{delta: -650}); //or mousewheel for other browsers I can't do anything like 'fake it' with css trickery, I need to trigger the actual native (or as close as possible) event. Thankyou! 回答1: You need to use jQuery.Event For example: // Create a new jQuery

Disable mouse scroll wheel in combobox VB.NET

喜夏-厌秋 提交于 2019-11-29 19:05:42
问题 Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? For my purposes, combobox is all I need the answer for. I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously. 回答1: The ComboBox control doesn't let you easily override behavior of the MouseWheel event. Add a new class to your project and

What are the Tkinter events for horizontal edge scrolling (in Linux)?

时光毁灭记忆、已成空白 提交于 2019-11-29 18:14:15
I have a Python Tkinter Text widget with scrollbars. I would like to define my own method for using horizontal edge scrolling on my laptop's touchpad. However, I don't know the event name(s) to allow me to do this. The vertical events work fine (so does pressing shift and using the vertical edge scroll to do horizontal scrolling). What are the event names I'm looking for? They don't appear to be "<Button-6>" and "<Button-7>" , as these give errors; e.g. _tkinter.TclError: specified keysym "6" for non-key event I'm not sure what "<Button-6>" has to do with keys, but okay. I'm using Linux (I say