Click here to Skip to main content
15,898,134 members

Comments by Member 13525602 (Top 3 by date)

Member 13525602 26-Nov-17 6:20am View    
This is actually a great solution. I didn't mention that i don't want to use libraries either, but this gave me a good starting point. Thanks!
Member 13525602 18-Nov-17 9:00am View    
it seems you're right. when i added console.log, the alert came up 8 times. It's just adding up all the scrolls and executing one big scroll at the end. So if i had it scroll 10 pixels each loop and the loop scrolls 8 times, it just scrolls 80 at the end.
Member 13525602 18-Nov-17 8:52am View    
Deleted
it seems you're right. when i added console.log, the alert came up 8 times. It's just adding up all the scrolls and executing one big scroll at the end. So if i had it scroll 10 pixels each loop and the loop scrolls 8 times, it just scrolls 80 at the end.