|
|
@ -48,8 +48,10 @@ export default class EventHandlerWrapper {
|
|
|
|
const opts = ['nonpassive', 'passive', 'once', 'capture'].filter(mod => this.node.modifiers.has(mod));
|
|
|
|
const opts = ['nonpassive', 'passive', 'once', 'capture'].filter(mod => this.node.modifiers.has(mod));
|
|
|
|
if (opts.length) {
|
|
|
|
if (opts.length) {
|
|
|
|
let opts_as_string;
|
|
|
|
let opts_as_string;
|
|
|
|
|
|
|
|
|
|
|
|
if (opts[0] === 'nonpassive') {
|
|
|
|
if (opts[0] === 'nonpassive') {
|
|
|
|
opts.shift();
|
|
|
|
opts.shift();
|
|
|
|
|
|
|
|
|
|
|
|
if (!opts.includes('passive')) {
|
|
|
|
if (!opts.includes('passive')) {
|
|
|
|
opts.push('passive');
|
|
|
|
opts.push('passive');
|
|
|
|
}
|
|
|
|
}
|
|
|
|