Skip to content

New disableTextSelection causes a slow drag start #2163

@danzel

Description

@danzel

New on front page of leaflet:
image

New on our internal app, this takes a noticeable amount of time:
image
(layout below it is 5ms on a input text box)
Stack trace comes back to https://github.com/Leaflet/Leaflet/blob/master/src/dom/DomUtil.js#L236

old on our internal app
image
There is no recalculate style immediately after the mouse down, drag is nicer.

The one that occurs later in the drag for both is hiding the already hidden layers control, I'll take a look at that.
https://github.com/Leaflet/Leaflet/blob/master/src/control/Control.Layers.js#L242

@jfirebaugh You implemented the text select change in #1782, any ideas? :)

Metadata

Metadata

Assignees

Labels

blockerCritical issue or PR that must be resolved before the next release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions