Listening For Scroll Event
By Casey Baggz
28 Aug 2015 13:47
English
6 Replies
Hello,
I'm trying to listen for a scrolling event to do some things on a page. The code below works fine on a web page, but doesn't work on the device. Having trouble finding the answer to this problem. Thanks ahead of time:
var a = document.getElementById('flightDetails'),
btn = document.getElementById('flightDetailsBtn');
a.onscroll = function() {
btn.style.bottom = "0";
};
a.addEventListener('scrollstart', function(e) {
alert('working');
alert(e);
});
Thanks ahead of time.
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------