Nathan J.B.
Nathan J.B.

Reputation: 10325

Internet Explorer Smooth Scrolling Detection

This is a two part question. I building a web page and I need to know:

  1. Is there a way to detect if IE has smooth scrolling enabled (if so, how)?
  2. Is there a way to force IE to turn off smooth scrolling for my web page?

To be clear, I'm not asking how to turn off smooth scrolling for the whole computer. I am the developer developing a web page that will only work properly if smooth scrolling is disabled.

Upvotes: 3

Views: 606

Answers (2)

Jack
Jack

Reputation: 492

I'm just chirping in here 5 years later...

You can remove smooth scrolling in IE if you manually override the event yourself.

if(navigator.userAgent.match(/Trident\/7\./)) {
    $('body').on("mousewheel", function () {
        event.preventDefault();
        var wd = event.wheelDelta;
        var csp = window.pageYOffset;
        window.scrollTo(0, csp - wd);
    });
}

This was sufficient for me to resolve my IE smooth scrolling issues. Blatantly stolen from Here

Upvotes: 1

Nathan J.B.
Nathan J.B.

Reputation: 10325

  1. No
  2. No

In conclusion, IE sucks. ;)

Upvotes: 8

Related Questions