onscroll

Android - ListView duplicate events

In my app I have a ListView backed by ArrayAdapter. In it I'm detecting events in OnScrollListener#onScroll method to find end of the list. I noticed that on the phone (MyTouch) both track-ball and gesture/touch scrolling will trigger the event twice. On the emulator I get the same behavior with a scrolling wheel and click-and-drug scrol...

How to get scrollTop of page just after page onload event?

I know how to get the scrollTop of a page, I use this simple JS function (code copied around): function GetScrolledTop() { //I never work in IE quirkmode, I always use DOCTYPE as 1st line, so I don't need to test for document.body.scrollTop return self['pageYOffset'] || document.documentElement.scrollTop; } This works and my p...

Using window.onscroll event to detect page/frame scrolling

I want to postion a DIV inside a page such that it is visible to the user even if the user vertically scrolls the page. The page has a heading at the top of the page which is 75 px tall. Now when the user is at the top of the page and has not scrolled vertically, the DIV must be postioned below the heading. However, once the user scrol...

Javascript onscroll and mouse position

I have a script that runs a addEventListener for onmousemove and onscroll on the document body to get the cursor position. A onmousemove event works fine (client + scroll), however when a onscroll event occurs clientX/Y seems to inherit scrollTop/Left values instead (only scroll). Is there a way around this? clickDocument = (document.do...

javascript scroll event for iPhone/iPad ?

I can't seem to capture the scroll event on an iPad. None of these work, what I am doing wrong? window.onscroll=myFunction; document.onscroll=myFunction; window.attachEvent("scroll",myFunction,false); document.attachEvent("scroll",myFunction,false); They all work even on Safari 3 on Windows. Ironically, EVERY browser on the PC supp...

onScroll-method in my GWT application is fired several times in IE, but only once in FF

Hi there :D, I'm having trouble. I know that IE and FF have different kinds of event-models, but this is really beyond me. I am using Google Web Toolkit to create some Ajax-Application. I have a table (FlexTable) wrapped by a ScrollPanel. When this ScrollPanel ends up being scrolled to its bottom, I fire an RPC-request to fetch some mor...

The advantage of onTouchEvent V.S. onScroll

I want to perform a smooth movement of a picture when user scroll it. So which one is better if my FPS is >60 ?? ...