ngSmoothScroll icon indicating copy to clipboard operation
ngSmoothScroll copied to clipboard

Not working on IE11

Open mrowles opened this issue 8 years ago • 1 comments

Hi,

Having issue with IE11 where the scroll doesn't work, and I've tried many, many combinations. I have an angular service that I pass an element to (tried via ID's, classes, containerId option...) and this is the one I've settled on that is the simplest and works on all other systems/browsers:

**JS**
var $element = angular.element(element)[0];

$timeout(function () {
    smoothScroll($element);
}, 250);

**HTML**
<div class="the-form">
    <div> ... </div>
    <div> ... </div>
    <div> ... </div>
    <div>
        <a href="#" onclick="submitForm()">Submit</a>
    </div>
</div>

I call the service with .the-form. I call this service after a successful $http.post.

I have used the ngSmoothScroll callback functions for before and after and in IE11 both work fine and log out what they're supposed to, the scrolling just doesn't work.

Note: this seems to work fine when using directives

Cheers, Matt

mrowles avatar Nov 30 '15 23:11 mrowles

Additionally, for some reason the scroll doesn't work when you are at the very bottom of the page (scrolled all the way down), unsure if related.

mrowles avatar Dec 01 '15 04:12 mrowles