Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

slider: Unexpected Mouse Behavior When Dragging #9643

Open
rac146 opened this issue Sep 19, 2016 · 6 comments
Open

slider: Unexpected Mouse Behavior When Dragging #9643

rac146 opened this issue Sep 19, 2016 · 6 comments
Labels
needs: investigation The cause of this issue is not well understood and needs to be investigated by the team or community P3: important Important issues that really should be fixed when possible. type: bug
Milestone

Comments

@rac146
Copy link

rac146 commented Sep 19, 2016

Actual Behavior:

  • md-slider does not behave correctly using a mouse in Google Chrome. The slider does not always follow where I'm dragging the mouse to. Also sometimes the text cursor or the not-available cursor gets displayed and the slider does not move at all. NOTE: This is happening when I drag the circle.
  • It happens more often If I try to do multiple drags in a row. (i.e. while keeping the slider focused). If I remove focus from the slider and then drag, it behaves normally.
  • It pretty much happens every time if I drag the slider to the max value, then try to drag it back
    • I noticed this beginning with the 1.1.0 release candidates. Back in version 1.0.9 and earlier the sliders perform as expected with a mouse. I do not experience this issue in touch mode.

CodePen (or steps to reproduce the issue): *

Angular Versions: *

  • `Angular Version: 1.5.5
  • `Angular Material Version: 1.1.1

Additional Information:

  • `Browser Type: Google Chrome
  • `Browser Version: 52.0.2743.116
  • `OS: Windows 7/Windows 10
@devversion
Copy link
Member

I think the dragging will be better after #9362

@fatore
Copy link

fatore commented Jun 8, 2017

Didn't improve after that, right?

@andemores
Copy link

I know this is a little late, but did you install hammerjs ?

@jack-box
Copy link

Still no fix for this? How I install hammerjs and set material to use it?

@Splaktar Splaktar changed the title md-slider - Unexpected Mouse Behavior When Dragging Circle slider: Unexpected Mouse Behavior When Dragging Apr 5, 2018
@Splaktar Splaktar added this to the 1.1.10 milestone Apr 5, 2018
@Splaktar Splaktar added the P3: important Important issues that really should be fixed when possible. label Apr 5, 2018
@Splaktar
Copy link
Contributor

Splaktar commented Apr 5, 2018

I can reproduce this in 1.1.8. Updated CodePen

AFAIK, there has been no progress made towards supporting HammerJS.

@Splaktar Splaktar added for: external contributor needs: investigation The cause of this issue is not well understood and needs to be investigated by the team or community labels Apr 5, 2018
@jack-box
Copy link

jack-box commented Apr 5, 2018

Ok

I finally end up using other slider for angular
https://github.com/angular-slider/angularjs-slider

Just configure the styling to make it similar to material

Best solution I think, and works perfectly whit the mouse events triggered even when pointer is out of the slider

@Splaktar Splaktar modified the milestones: 1.1.10, 1.1.11 Jun 19, 2018
@Splaktar Splaktar modified the milestones: 1.1.11, 1.1.12 Sep 10, 2018
@Splaktar Splaktar modified the milestones: 1.1.12, 1.1.13 Jan 3, 2019
@Splaktar Splaktar modified the milestones: 1.1.13, 1.1.14 Feb 10, 2019
@Splaktar Splaktar modified the milestones: 1.1.14, 1.1.15 Mar 14, 2019
@Splaktar Splaktar modified the milestones: 1.1.15, 1.1.16, 1.1.18, 1.1.19 Mar 29, 2019
@Splaktar Splaktar modified the milestones: 1.1.19, 1.1.21 May 30, 2019
@Splaktar Splaktar removed this from the 1.1.21 milestone Aug 15, 2019
@Splaktar Splaktar added this to the 1.1.22 milestone Aug 15, 2019
@Splaktar Splaktar modified the milestones: 1.1.22, 1.1.23 Oct 22, 2019
@Splaktar Splaktar modified the milestones: 1.1.23, 1.2.1 May 6, 2020
@Splaktar Splaktar modified the milestones: 1.2.1, 1.2.2 Sep 14, 2020
@Splaktar Splaktar modified the milestones: 1.2.2, - Backlog Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: investigation The cause of this issue is not well understood and needs to be investigated by the team or community P3: important Important issues that really should be fixed when possible. type: bug
Projects
None yet
Development

No branches or pull requests

6 participants