Coder Social home page Coder Social logo

popsugar / angular-slider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prajwalkman/angular-slider

87.0 87.0 58.0 151 KB

Slider directive implementation for AngularJS, without jQuery dependencies

License: MIT License

Shell 0.59% Ruby 6.53% CSS 23.11% CoffeeScript 69.78%
frontend library shopstyle

angular-slider's People

Contributors

bijoys avatar bpossolo avatar bugsel avatar prajwalkman avatar sifu avatar steve8708 avatar tsvayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-slider's Issues

Rendering problem with border-box

If in the CSS the box-sizing: border-box* is defined the handler looks funky.

screenshot 2016-10-21 13 10 35

Bootstrap is using * { box-sizing: border-box }, so hypothetically this directive is not compatible with it.

* on why you should use border-box.

logarithmical changes [feature]

I want make feature logarithmic changes ngModel[Low|High] when approaching the ceiling. Are there any developments on this problem? May have planned it commit?

Release event

Hi there. Thanks for your work with maintaining the slider.

I'm using the it for filtering some data, which is fetched via an HTTP request. Is there a way to listen on when the handle has been released so that the request isn't sent continuously?

Ng-mouseup listen on the entire slider, and doesn't account for releasing outside.

Error when moving slider over the left end

Hey,

thanks for keeping this project up and running!
I get an error on desktop browser, when dragging the slider further left than allowed - over the end.

The errors is caused by event.touches[0] as this does not exist:
eventX = event.clientX || event.touches[0].clientX;

eventX = event.clientX || event.touches[0].clientX;

Should be solved by checking if touches exists:
eventX = event.touches && event.touches.length > 0 ? event.touches[0].clientX : event.clientX;

Thanks a lot!
Marcel

Slider handles and range bar out of place on browser refresh

This isn't really an issue, as it doesn't happen all the time. I've had the same problem before and was able to fix it, but I forget how. Has anyone else ever encountered this, where parts of the slider are out of place when the page first loads, but snap to the correct positions when you click on one of the handles?

screen shot 2015-01-23 at 2 43 24 pm

Edit: This may actually be an issue (or maybe I'm loading scripts wrong, who knows), but I discovered something else. The slider loads fine when I go from one view in the app to the page that it's on, but I get this weird effect when refreshing the browser when on this page. Here's how I'm using it:

# signup.jade
slider(floor="10", ceiling="250", step="5", ng-model-low="newJob.salary_min", ng-model-high="newJob.salary_max")

And here's how I'm setting the initial values in the controller:

# signup.coffee
$scope.newJob =
    ...
    salary_min: 50
    salary_max: 150

Unable to use on mobile device

The bubble will not drag on mobile device. I see the bubble is getting the touch event because it lights up, but it cannot be dragged. Can you test to see if this happens across the board and not just for me?

The error I see in the console is:
Uncaught TypeError: Cannot read property '0' of undefined

All files seem to get minified when using Chrome's ADB plugin inspector so I can't debug it :(

This is how I'm using it:
<slider floor="0" ceiling="18" step="1" precision="0" ng-model="colorSlider.position"></slider>

$scope.colorSlider = {
position: 0
};

I'm using Angular 1.3 and I also couldn't get it to work with angular 1.2.

ng-change no work

Hi,

The ng-change="" no work on slider.
You have an idea of the problem?

The Slider handle is positioned by default on the left of the bar and not by the value of the Model

Hi @popsugarlegal ,
Thanks for your work... ๐Ÿ‘

I am trying to implement the slider with the following values:

<slider floor="80" ceiling="260" step="20" ng-model="footerSlider" style="margin:0 !important;"></slider>

But when I set the value of footerSlider in the controller to be 120 the Slider handle is still positioned on the left of the bar and not positioned according to the value I set in the controller.
Please help.

Idanb11.

Error with bower

Hi,

I'm trying to add this project to my code using bower, and when running an update I get this message :
"bower angular-slider#0.3.* invalid-meta angular-slider is missing "ignore" entry in bower.json"
I'm not an expert in bower but I think it means that there is a "ignore" block missing in the bower.json file of angular-slider.
If I'm wrong please enlighten me !

PS : I just updated my Bower (1.7.1), maybe it's related.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.