Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linked types to MapWheelEvent and MapTouchEvent #10525

Merged
merged 3 commits into from
Apr 8, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ui/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export class MapMouseEvent extends Event {
*/
export class MapTouchEvent extends Event {
/**
* The event type.
* The event type (one of {@link Map.event:touchstart},
* {@link Map.event:touchend},
* {@link Map.event:contextmenu}).
*/
type: 'touchstart'
| 'touchend'
Expand Down Expand Up @@ -192,7 +194,7 @@ export class MapTouchEvent extends Event {
*/
export class MapWheelEvent extends Event {
/**
* The event type.
* The event type (one of {@link Map.event:wheel}).
domlet marked this conversation as resolved.
Show resolved Hide resolved
domlet marked this conversation as resolved.
Show resolved Hide resolved
*/
type: 'wheel';

Expand Down