Skip to content

fixing this._times.length undefined in Map.Drag.js, fixes #4311#4324

Merged
IvanSanchez merged 1 commit intoLeaflet:masterfrom
OpenDevTeam3:drag-undefineds
Mar 15, 2016
Merged

fixing this._times.length undefined in Map.Drag.js, fixes #4311#4324
IvanSanchez merged 1 commit intoLeaflet:masterfrom
OpenDevTeam3:drag-undefineds

Conversation

@LucasMouraDeOliveira
Copy link
Copy Markdown
Contributor

No description provided.


if (map.options.inertia) {
this._positions = [];
this._times = [];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the initialization in _onDragStart? If inertia is enabled, we want to forget the speed of the previous drag(s) whenever a new drag is started; so we want to keep this bit of code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my bad, i'm updating it right now.

@IvanSanchez
Copy link
Copy Markdown
Member

Looks good now, but please squash your commits into one. For very small features/bugfixes such as this one we prefer to have just one commit.

Update Map.Drag.js

Update Map.Drag.js
@IvanSanchez
Copy link
Copy Markdown
Member

👍

IvanSanchez added a commit that referenced this pull request Mar 15, 2016
fixing this._times.length undefined in Map.Drag.js, fixes #4311
@IvanSanchez IvanSanchez merged commit 0ea9832 into Leaflet:master Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants