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.

Slider drags very slow

See original GitHub issue

When I implemented this in a sample project it was working fine, but when I implement in my project It works like a slow-mo movie.

I used this in my search filter section, and there are lots of rendering every filter change corresponds to re-render.

this.state = {
	filterParams: {
		value:{
			min:100,
			max:7000,
		},
	},
};




<InputRange
	ref="react_input_range"
	maxValue={7000}
	minValue={100}
	step={100}
	value={this.state.filterParams.value}
	onChange={value => this.changePriceRangeHandler(value)} 
/>

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

4reactions
B4R05commented, Feb 11, 2019

May be slightly unrelated but if that helps anyone consider that the transition property also contributes to making the slider thumb drag slowly.

Simply disable the built in transition property like so:

Before: .input-range__slider-container { transition: left 0.3s ease-out; }

After: .input-range__slider-container { transition: none; }

3reactions
stefanderaadtcommented, Feb 27, 2019

May be slightly unrelated but if that helps anyone consider that the transition property also contributes to making the slider thumb drag slowly.

Simply disable the built in transition property like so:

Before: .input-range__slider-container { transition: left 0.3s ease-out; }

After: .input-range__slider-container { transition: none; }

Also make sure to set:

.input-range__track {
    transition: none;
}

Otherwise the slider bar will still have a transition.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to drag slider wpf slower? - Stack Overflow
I want to update its work, so that the drag speed decreases, when the mouse cursor distance to the Slider increases. That means,...
Read more >
slider drag handle responds slow in UI for ASP.NET AJAX
I have a slider with divs that get updated on clientside with the slider value. I noticed that my slidervalue changes first and...
Read more >
Slight delay when dragging a slider in photoshop w...
However, when I start dragging the slider using my wacom pen it stays frozen on 30 for a short while (0.3-0.5 seconds) and...
Read more >
Sprites drag following is slow, and how can i make responsive ...
Thats hard to make it that way. By responsive sliders i mean it is works on every screen, keeping the knob's size rate...
Read more >
Is there a way to slow down sliders? : r/unrealengine - Reddit
Sliders are way too sensitive to drag and adjust them precisely. In Blender you can hold the shift key to have more precise...
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