lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
20 lines • 597 B
JavaScript
import { BubblingEvent } from './BubblingEvent.js';
/**
* An event that is fired when a scrollable widget such as
* {@link ScrollableViewportWidget} is scrolled.
*
* @category Event
*/
export class ScrollEvent extends BubblingEvent {
constructor(origin, offsetX, offsetY, deltaX, deltaY) {
super(origin);
this.type = ScrollEvent.type;
this.userCapturable = false;
this.offsetX = offsetX;
this.offsetY = offsetY;
this.deltaX = deltaX;
this.deltaY = deltaY;
}
}
ScrollEvent.type = 'scroll';
//# sourceMappingURL=ScrollEvent.js.map