Skip to content

Problen when working on devices with mouse and touch screen #38

@dape48

Description

@dape48
  • The directive don't registers handlers for mouse events on touch screen devices, only for touch events, neither for wheel, mouseenter, mouseleave and keydown events. Therefore you can't use mouse wheel (or touchpad on labtops) to scroll when using touch screens.
  • When the ng-scrollable component contains clickable components they will work clicking with mouse on it but not touchin because the touchstart event is prevented.

I have been trying to solve this isues, and it seems to work properly. Firstly I changed 'registerHandlers'/'unregisterHandlers' functions to always register/unregister handlers for wheel, mouseenter, mouseleave and keydown events. Then I changed 'onMouseDownX'/'onMouseDownY' functions to dont' prevent touchstart events.

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions