Skip to content

Commit

Permalink
removed coordinate conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ATL2001 committed Oct 24, 2024
1 parent 052413b commit 3006f99
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,6 @@ function App() {
// We added this flag to prevent the hover event from firing after a
// click event.
if (typeof info.coordinate !== "undefined") {
// let x = info.coordinate[0];
// while (x < 180) {
// x += 360;
// }
// while (x > 180) {
// x -= 360;
// }
// info.coordinate[0] = x;
if (model.get("_has_click_handlers")) {
model.send({ kind: "on-click", coordinate: info.coordinate });
}
Expand Down

0 comments on commit 3006f99

Please sign in to comment.