Open zxfwinder opened 6 years ago
https://github.com/inuyaksa/jquery.nicescroll/blob/54d164e97ac6e3b874481a30a5f816d8ff616233/jquery.nicescroll.js#L2065
self.doc.contents().find('body')[0] => self.doc.contents()[0].scrollingElement || self.doc.contents().find('body')[0]
please ref: https://dev.opera.com/articles/fixing-the-scrolltop-bug/
https://github.com/inuyaksa/jquery.nicescroll/blob/54d164e97ac6e3b874481a30a5f816d8ff616233/jquery.nicescroll.js#L2065
self.doc.contents().find('body')[0] => self.doc.contents()[0].scrollingElement || self.doc.contents().find('body')[0]
please ref: https://dev.opera.com/articles/fixing-the-scrolltop-bug/