cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.81k forks source link

On initialized function #1062

Closed codeplaygoa closed 8 years ago

codeplaygoa commented 8 years ago

i want to fire a function once iscroll is initialized.

glebmachine commented 8 years ago

It's ok, what's the question is?

codeplaygoa commented 8 years ago

when iscroll is initialized i want to fire my custom function. i have seen there are iscroll events like "beforeScrollStart","scrollEnd" etc.. but i couldnt find an event which tells me iscroll is initialized

glebmachine commented 8 years ago

iScroll initialised right after new iScroll() call. Just put your code right after this block of code.

codeplaygoa commented 8 years ago

ok thanks