JavaScript scroll wheel event
IE6.0 first realized the scroll wheel event of the mouse, and its good interaction effect was recognized. Then mainstream browsers such as Opera, chrome, and safari all achieved this effect, however, there are a lot of compatibility issues.
Most browsers support mousewheel event operations
(VB. NET source code)Because scenecontrol does not respond to scroll wheel sliding events, you must first write a scroll wheel sliding event.
Axscenecontrolpolicwheel
Then, when loading, add the scroll wheel sliding handle
A
The flexible use of wheel and mouse wheel can achieve many unexpected functions.In officeIn addition to browsing (documents, images, or webpages) that we are familiar with, scroll wheel and mouse are useful in Word. Press the "Ctrl" key in one hand, when you rotate the scroll
The implementation of the mouse wheel event is a little different in IE and FF, so you need to write this event as a unified and available event. Today, I found a function that responds to the scroll wheel on the Internet and changed it to the following class.
The Code is as follows:
Function wheelEvent (obj, handle){This. handle = handle;// Different events be
This article mainly introduces how to listen to the mouse wheel event in javascript. It describes how to use specific examples and considers different browsers. You can refer to the results we have seen, use the scroll wheel to increase or decrease the number in a form, or use the scroll
Http://community.csdn.net/Expert/topic/5694/5694560.xml? Temp =. 9589044.
The idea is the same, but I won't write C #, so I found a similar post.
Source code source:Http://www.cnblogs.com/submaie/archive/2006/12/05/474568.html
1. register an event2. intercept messages and then trigger events
Protected override void onmousewheel (mouseeventargs E){Base. onmousewheel (E); // registers an event to the base class.If (pageinfo. Length = 0 |! _ Havewheel) // exit if there is no content or the client d
Document directory
3. Next let's take a look at the Pan dragging.
The last time the mouse was scaled and translated with a button. The user experience was poor. This article is followed by dragging and zooming the last content.
First go to the demo, zoom the scroll wheel, drag and drop the pan.
Add point Add circle Zoom in Zoom out1. What is the control class? Control
The control class is a type of ope
StatementYou are welcome to repost this article, but please respect the author's Labor achievements. repost this article and keep the statement in this box. Thank you.Article Source: http://blog.csdn.net/iukey
The selector is used to replace the drop-down menu on the PC. It is a large scroll wheel and occupies a fixed size of 320 × 216.
I. Create
Although the size is fixed, the position can be arbit
Scenario: In a form similar to QQ chat, you need to add a custom scroll bar vscroll. The panel holds space in the main form, and the vertical scroll bar vscroll on the right.Problem: The VScroll and Panel.verticalscroll scroll bars have been implemented, but the mouse wheel event cannot be triggered.Cause: Panel cannot
Additional event
I tested that IE/opera belongs to the same type. You can use attachevent to add scroll wheel events.CopyCodeThe Code is as follows:/* ie registration event */If (document. attachevent ){Document. attachevent ('onmousewheel ', scrollfunc );}
Firefox uses addeventlistener to add scroll wheel events
Android does not process the scroll wheel event as follows:
1) public boolean onKeyDown (int keyCode, KeyEvent event)
2) public boolean dispatchKeyEvent (KeyEvent event)3) public boolean onTouchEvent (MotionEvent event)
But the following functions:
Publicboolean onGenericMotionEvent (MotionEvent event );
All views and activities can rewrite this function to handle s
How to Use the scroll wheel to move data to obtain the fingerprints of anonymous users in Tor browsers
The ability to communicate secretly through the Internet is very important to political and activist groups. Then, almost everyone cares about the privacy of the Internet.Although Tor networks provide users with a high level of privacy and security, most people can hardly find users' real IP addresses. How
Implementation is similar to the effect of entering text numbers on the Photoshop control panel, so the name is PsWheel. It is used to control the input numeric text box to realize the sliding up and down of the scroll wheel to change the value. It supports positive integers and decimals. Introduction
Implementation is similar to the effect of entering text numbers on the Photoshop control panel, so the na
This is not a gimmick. Although the code is very long, it is very classic. It can be used to slide the scroll bar on the keyboard or scroll wheel.
The following is the header file that stores the data.
#define NUMLINES ((int) (sizeof sysmetrics / sizeof sysmetrics [0]))struct{ int iIndex ; TCHAR * szLabel ; TCHAR * szDesc ;}sysmetrics [] ={ S
Today, I found a function that responds to the scroll wheel on the Internet and changed it to the following class.Copy codeThe Code is as follows:Function wheelEvent (obj, handle){This. handle = handle;// Different events between Firefox and IEWindow. addEventListener? Obj. addEventListener ("DOMMouseScroll", this. wheel, false): (obj. onmousewheel = this.
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Let's take a look at the compatibility of various browsers.IE 6, 7, 8Register an event using onmousewheelUse event. wheelDelta to get the scroll ValueRolling step 120Downward is a negative value and upward is a positive valueWhen the mouse is in the same coordinate and the scroll
Scenecontrol + AE + scroll wheel Scaling
To set the scroll wheel scaling for scenecontrol, you must define the delegation. Because scenecontrol does not have a wheel event, the from wheel event must be delegated.
Public form1
How do I set the number of rows of the scroll wheel in Win10 1709 autumn originality update ?, Win101709 Autumn
When Browsing webpages, we often use the scroll wheel of the mouse to flip pages. This is very convenient, but we feel that the page turning speed is not suitable for us. Can we set the number of rows of the
Use the Scrollify plug-in of jQuery to slide the scroll wheel or gesture to the next node of the page, jqueryscrollify
Sometimes we need to make a single page to introduce product features, while a single page contains a lot of content and the page is very long. In order to quickly locate the product feature node, we use js to listen for user wheel events, when y
This article describes how to use JQuery to slide the scroll wheel to a page node. For more information, see the following JQuery code, and present it to you.
Based on jQuery, move the scroll wheel to the page node. This is a special effect based on jQuery + CSS3 that uses the scr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.