Use pepjs instead of our own pointerevent polyfill
This commit is contained in:
@@ -82,7 +82,9 @@ class Target extends Disposable {
|
||||
dispatchEvent(event) {
|
||||
const evt = typeof event === 'string' ? new Event(event) : event;
|
||||
const type = evt.type;
|
||||
evt.target = this;
|
||||
if (!evt.target) {
|
||||
evt.target = this;
|
||||
}
|
||||
const listeners = this.listeners_[type];
|
||||
let propagate;
|
||||
if (listeners) {
|
||||
|
||||
@@ -207,7 +207,7 @@ export const shiftKeyOnly = function(mapBrowserEvent) {
|
||||
* @api
|
||||
*/
|
||||
export const targetNotEditable = function(mapBrowserEvent) {
|
||||
const target = mapBrowserEvent.originalEvent.target;
|
||||
const target = mapBrowserEvent.target;
|
||||
const tagName = /** @type {Element} */ (target).tagName;
|
||||
return (
|
||||
tagName !== 'INPUT' &&
|
||||
|
||||
Reference in New Issue
Block a user