Moveable: Dragable, moveable is not worked in google map

Created on 29 Oct 2019  路  5Comments  路  Source: daybrush/moveable

I am using this module for move, resize in google map marker but it's not working.
https://jsfiddle.net/abinhho/bcfw5rv0/6/


Screen Shot 2019-10-29 at 5 34 30 PM

Feature complete question

Most helpful comment

@abinhho
I provide inputEvent on all events that can stopProppagation

All 5 comments

@abinhho

Each time Google Map calls draw, it creates a moveable instance. Try the following:

var moveable;
gm.prototype.onAdd = function() {
    moveable = new Moveable(......);
}
gm.prototype.draw = function() {
  moveable.updateRect();
}

@daybrush Thanks you !

I try your solution but I face with other problem. When I drag rectangle, the map also moved.
I think something wrong at container and I tried to change this setting but not luck.
https://jsfiddle.net/abinhho/2bo0k5ye/6/

@abinhho
I provide inputEvent on all events that can stopProppagation

@abinhho
moveable 0.10.0 is released.

All events in moveable have inputEvent to stopPropagation.
https://github.com/daybrush/moveable/blob/master/handbook/handbook.md#toc-events

moveable.on("dragStart", ({ inputEvent }) => {
   inputEvent.stopPropagation();
});

thank you :)

@daybrush
It's worked like champ.
https://jsfiddle.net/abinhho/2bo0k5ye/23/

Thanks you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Xumochuan picture Xumochuan  路  6Comments

ladifire picture ladifire  路  3Comments

Nazakatalikharal picture Nazakatalikharal  路  6Comments

plotpoi picture plotpoi  路  4Comments

MiiZZo picture MiiZZo  路  3Comments