开发者

IE fails once again, jQuery scroll vibrating heavily

开发者 https://www.devze.com 2023-03-14 00:44 出处:网络
I\'m using jQuery\'s scrollTop and scrollLeft to scroll on a website. Everything works perfectly in Chrome and Firefox, but in IE9 the screen vibrates like crazy when scrolling.

I'm using jQuery's scrollTop and scrollLeft to scroll on a website. Everything works perfectly in Chrome and Firefox, but in IE9 the screen vibrates like crazy when scrolling.

This i开发者_如何学Cs my code for scrolling:

$('body').animate({
    scrollTop: '1980px',
    scrollLeft: '500px'
}, 800, 'swing');

I've also tried using animate on $(window), $('html') and $('html, body'), no effect.

You can view the live website here: webvalid.nl/thomas

Has anyone had similar problems? I couldn't anything googling... Thanks in advance!


This isn't the solution you are looking for but you could always use: http://www.dyn-web.com/code/scroll/

I thought this might work because there is no easing, and it looks to me this could be done by scrolling a div and doing the animation separately on the left.

sorry if im no help...

0

精彩评论

暂无评论...
验证码 换一张
取 消