ignore scrollToElement when the defined element is in the viewport

已查看 19 次
跳至第一个未读帖子

Balázs Péterfi

未读,
2014年4月15日 10:32:002014/4/15
收件人 isc...@googlegroups.com
Hi All,

I would like to know whether it's possible to prevent scrolling when using scrollToElement in case of the given element is in the view? It's quite annoying that it scrolls the element to the top of the view even if it wouldn't be needed.

Thanks in advance!

Regards,
Balazs
回复全部
回复作者
转发
0 个新帖子