proper fix for when then is a pointer event
This commit is contained in:
parent
e931f65632
commit
c25c470e21
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@
|
||||||
viewControl.setPosition(pos);
|
viewControl.setPosition(pos);
|
||||||
updateLastAction();
|
updateLastAction();
|
||||||
refresh();
|
refresh();
|
||||||
try { if (pos.then) pos.then(); } catch (e) { }
|
let { then } = pos;
|
||||||
|
if (typeof then === 'function') {
|
||||||
|
then();
|
||||||
|
}
|
||||||
}).
|
}).
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue