Files
leaflet/spec/suites/dom
johnd0e e87ed0cea0 More reliable disableClickPropagation (#7439)
* Reimplement disableClickPropagation in more simple and reliable way

Original approach was even simpler 5a7420dd1a
But was reworked in 5c1a34979e to be compatible with IE<9

Todo: return to original after we drop support for legacy IE

* Get rid of skipped() in stopPropagation

It was originated from here: caece94467
The only purpose of skipped there - neutralize flaws of former limited implementation of
disableClickPropagation, so it is not needed anymore.

* Reimplement preventing of double-processing of Canvas events in more simple and reliable way.

(fakeStop was used there for sole purpose here - do not pass events to map)

Remove unused functions fakeStop / skipped.

* Revert "DomEventSpec.js: test to ensure stopPropagation does not break disableClickPropagation logic"

This reverts commit 63a280993d.

Remove test case which is not useful after disableClickPropagation reimplemented

* Remove excessive check

After previous refactoring corresponding events are stopped naturally

* DomEvent.disableClickPropagation: prevent contextmenu as well
2021-11-01 14:02:42 +02:00
..