Unplanned
Last Updated: 06 Feb 2020 08:45 by ADMIN
Hongmei
Created on: 06 Feb 2020 08:34
Category: Map
Type: Bug Report
1
Pan and panEnd should not trigger shapeClick

If pan initiated from shape, shapeClick is triggered. click - is not.shapeClick should not be triggered, too.

https://dojo.telerik.com/OlomeNoS/2

1 comment
ADMIN
Alex Hajigeorgieva
Posted on: 06 Feb 2020 08:45

Hi, Hongmei,

Thank you for taking the time to report this issue, I have updated your Telerik points as a token of appreciation.

The relevant public issue in the Kendo UI repository is available at:

https://github.com/telerik/kendo-ui-core/issues/5586

The workaround at the moment is to use a map internal property to check when the map was last panned:

shapeClick: function(e){
             // check when the map was last panned
              var millisecondsFromPan = e.sender._panEndTS ? new Date().getTime() - e.sender._panEndTS.getTime() : 10;
              if(millisecondsFromPan < 10){
                console.log("End of pan");
              } else {
                console.log("shapeClick", e);
          }

Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.