question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple sliders on a page influence each other

See original GitHub issue

I add multiple sliders to a page:

<div class="row form-row" *ngFor="let option of categoricalOptions"> ... <categorical-slider [value]="option.defaultStringValue" [values]="option.stringValues" (sliderPosition)="onCategoricalOptionChange(option, $event)"></categorical-slider> </div> <div class="row form-row" *ngFor="let option of continuousOptions"> ... <continuous-slider [value]="option.defaultDoubleValue" [min]="option.minDoubleValue" [max]="option.maxDoubleValue" (sliderValue)="onContinuousOptionChange(option, $event)"></continuous-slider> </div>

with categorical-slider <div class="slider"><nouislider [config]="sliderConfig" [(ngModel)]="sliderValue" (ngModelChange)="onChange($event)"></nouislider></div>

and continous-slider <div class="slider"><nouislider [config]="sliderConfig" [(ngModel)]="value" (ngModelChange)="onChange($event)"></nouislider></div>

The sliders influence each other after being dragged once on dragging and tapping. Key events do not influence other sliders. This behaviour is not intended!

Here a screen record of the mentioned behaviour: screen_record-1.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
saveragcommented, Aug 9, 2017

@Gagaro thanks!

1reaction
cmaartcommented, Jun 29, 2017

Clicking on a handle with version 10.0.0 has the issue that it’s not release properly. And you can drag anywhere on the page.

I made a plunker to reproduce it: https://plnkr.co/edit/HyFbhD?p=preview

As @Gagaro wrote, by changing the nouislider version from 10.0.0 to 9.0.0 in the systemjs config file, fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple sliders affecting each other - JavaScript - SitePoint
I have set up three sliders on one page, and clicking the links for one sliders affects the others. Somehow the last slider...
Read more >
How do I let multiple sliders on one page function separate ...
Problem is: the client can add another slider to the same page. At that point the second slider doesn't 'work' when you click...
Read more >
Multiple Sliders on One Page. - Articulate Storyline Discussions
Multiple Sliders on One Page. ... to figure out how to arrange a slider to influence the movements of other sliders (and related...
Read more >
Trouble customizing slider dots for multiple sliders on same ...
So I've built a custom slider with a bit of custom code, especially for the slider dots. However I'm kinda stuck on what...
Read more >
Do Rotating Sliders Help or Hurt Your Website? [Research ...
It says that sliders can be a useful part of the user experience. It shows that using sliders to show things like different...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found