Many mouse drivers let you set the distance scrolled by the mouse wheel, so there is not a standard distance. I'd try your code out for a while and pick a distance that keeps you from scrolling all day but doesn't jump a mile at each scroll. You'll kind of need to "feel" it out.
Get friends to give feedback, it helps to let a few hands touch this kind of thing.
I don't think that mouse drivers by themselves are responsible for "the distance scrolled by the mouse wheel". Each mouse wheel event reports some angle the wheel was rotated. Translation of WM_MOUSEWHEEL to WM_VSCROLL is a function of GUI subsystem on top of the driver.
– c-smile Oct 14 at 6:17 I think @Kirk is trying to determine how far to scroll in pixels, not how far the wheel was turned. – Surreal Dreams Oct 14 at 14:02.
For Firefox, you have the MozMousePixelScroll event, which reports the number of pixels that should be scrolled in e.detail. Window. AddEventListener('MozMousePixelScroll', function(e) { console.
Log(e. Detail); }); For many other browsers, you have the mousewheel event that reports e. WheelDeltaY, but they are not in pixels and you will have to guess the amount to be scrolled.
Also see how SproutCore handles scrolling in their own framework (they're writing their own scrolling view too): blog.sproutcore.com/scrolling-in-sproutcore.
You'll need to store the current scroll position before the scroll and then when you detect a scroll get the distance travelled me thinks.
We can controll using javascript. Refer below link. I hope it will help you.
Looks like you have it set to 5px * the delta value from the mousewheel event there. – Kirk Oct 14 at 5:29.
Usually each mouse wheel "tick" corresponds to some configurable (by user) number of pixels. In Windows for example distance scrolled by each mouse wheel click should be a function of SystemParametersInfo( SPI_GETWHEELSCROLLLINES, ...) parameter. Here you can find more info on the subject.
For Firefox, you have the MozMousePixelScroll event, which reports the number of pixels that should be scrolled in e.detail.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.