OpenLayers OpenLayers

Ticket #1507 (closed bug: fixed)

Opened 3 months ago

Last modified 2 months ago

panTo shouldn't do anything if new center is the same as the current one

Reported by: pgiraud Assigned to:
Priority: minor Milestone: 2.7 Release
Component: Map Version: 2.6 RC2
Keywords: Cc:
State: Complete

Description

In some cases (show a popup) we call panTo even if the new center is the same as the current one. This causes the vector layers to flickr.

Attachments

patch-1507-r6844-A0.diff (0.6 kB) - added by pgiraud on 04/10/08 10:16:30.

Change History

04/10/08 10:16:30 changed by pgiraud

  • attachment patch-1507-r6844-A0.diff added.

04/10/08 10:17:17 changed by crschmidt

Agreed. If we do have an RC3, I think this is worth fixing.

04/10/08 16:03:35 changed by pgiraud

I'm surprised we don't have tests for the panTo method. Is this something I forgot to do ?

04/11/08 07:34:43 changed by crschmidt

I don't remember ever seeing panTo tests: just Tween tests.

04/15/08 21:34:24 changed by crschmidt

  • state set to Review.

05/11/08 14:36:55 changed by crschmidt

  • state changed from Review to Commit.

05/14/08 04:11:01 changed by pgiraud

  • status changed from new to closed.
  • state changed from Commit to Complete.
  • resolution set to fixed.

(In [7174]) exit the panTo method if the new center is the same as the current one, r=crschmidt (closes #1507)