Added the option "capturePointerEvents" to InteractionDelegate.
This commit is contained in:
parent
d3c8d9c1af
commit
42afa3e7ab
@ -966,6 +966,7 @@ export class InteractionMapper extends InteractionDelegate {
|
|||||||
tapDistance = 10,
|
tapDistance = 10,
|
||||||
longPressTime = 500.0,
|
longPressTime = 500.0,
|
||||||
useCapture = true,
|
useCapture = true,
|
||||||
|
capturePointerEvents = true,
|
||||||
mouseWheelElement = null,
|
mouseWheelElement = null,
|
||||||
logInteractionsAbove = 12
|
logInteractionsAbove = 12
|
||||||
} = {}
|
} = {}
|
||||||
@ -973,6 +974,7 @@ export class InteractionMapper extends InteractionDelegate {
|
|||||||
super(element, target, {
|
super(element, target, {
|
||||||
tapDistance,
|
tapDistance,
|
||||||
useCapture,
|
useCapture,
|
||||||
|
capturePointerEvents,
|
||||||
longPressTime,
|
longPressTime,
|
||||||
mouseWheelElement
|
mouseWheelElement
|
||||||
})
|
})
|
||||||
|
@ -898,7 +898,7 @@ export class DOMScatterContainer {
|
|||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
element,
|
element,
|
||||||
{ stopEvents = 'auto', claimEvents = true, useCapture = true, touchAction = 'none', debugCanvas = null } = {}
|
{ stopEvents = 'auto', claimEvents = true, useCapture = true, capturePointerEvents = true, touchAction = 'none', debugCanvas = null } = {}
|
||||||
) {
|
) {
|
||||||
this.onCapture = null
|
this.onCapture = null
|
||||||
this.element = element
|
this.element = element
|
||||||
@ -923,6 +923,7 @@ export class DOMScatterContainer {
|
|||||||
this.scatter = new Map()
|
this.scatter = new Map()
|
||||||
this.delegate = new InteractionMapper(element, this, {
|
this.delegate = new InteractionMapper(element, this, {
|
||||||
useCapture,
|
useCapture,
|
||||||
|
capturePointerEvents,
|
||||||
mouseWheelElement: window
|
mouseWheelElement: window
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user