-
-
Notifications
You must be signed in to change notification settings - Fork 98
Pointer Events
Murhaf Sousli edited this page Nov 20, 2019
·
10 revisions
In version 7, we introduced 2 ways of detecting pointer-events such as track clicked and thumb drag events.
<ng-scrollbar pointerEventsMethod="viewport || scrollbar">
-
pointerEventsMethod="viewport"
, will detect pointer events using viewport'smousemove
,mousedown
andmouseleave
events. -
pointerEventsMethod="scrollbar"
, will detect pointer events using scrollbarmousedown
event.
Appearance ↓ | viewport | scrollbar |
---|---|---|
Standard |
|
|
Compact |
|
|
My recommendation: If scrolling over scrollbar isn't important to you, then go with pointerEventsMethod="scrollbar"
.
Become a sponsor and get your logo on our README on GitHub and the front page of https://ngx-scrollbar.netlify.com/.
Become a backer and get your logo on our README on GitHub.
Latest version (v15)
Addons:
Older version (v13)
- Demo for v13
- Usage
- Styling
- Global Options
- Pointer Events
- Scroll Event
- Updated Event
- Smooth Scroll Functions
- Performance tweak
- Integration
- Reached events