@pixi/events
Version:
Federated Events API, the plumbing behind the propagation of UI events into the PixiJS scene graph.
18 lines (17 loc) • 682 B
JavaScript
;
var FederatedMouseEvent = require("./FederatedMouseEvent.js");
class FederatedPointerEvent extends FederatedMouseEvent.FederatedMouseEvent {
constructor() {
super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
}
// Only included for completeness for now
getCoalescedEvents() {
return this.type === "pointermove" || this.type === "mousemove" || this.type === "touchmove" ? [this] : [];
}
// Only included for completeness for now
getPredictedEvents() {
throw new Error("getPredictedEvents is not supported!");
}
}
exports.FederatedPointerEvent = FederatedPointerEvent;
//# sourceMappingURL=FederatedPointerEvent.js.map