Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Timeout in Slider #220

Closed
Closed
@sjaakiejj

Description

@sjaakiejj

I've started playing with this library, and whilst I love most of it I ran into an issue. When the slider is rendered on the page, the sliders start at 0 and then snap into the correct position after half a second or so. Whilst it's not detrimental to the usage of the directive, it doesn't look very pretty. Looking at the source code, I noticed this part:

       $timeout(function() {
          self.updateCeilLab();
          self.updateFloorLab();
          self.initHandles();
          self.manageEventsBindings();
        });

Removing the timeout solves the issue and doesn't appear to break the slider in any way, so I'm curious as to what the reason is to have it in there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions