Do not scroll page during feature translation
This commit is contained in:
@@ -262,6 +262,8 @@ class Translate extends PointerInteraction {
|
||||
});
|
||||
|
||||
this.lastCoordinate_ = newCoordinate;
|
||||
// Prevent page scrolling during drag
|
||||
event.preventDefault();
|
||||
this.dispatchEvent(
|
||||
new TranslateEvent(
|
||||
TranslateEventType.TRANSLATING,
|
||||
|
||||
Reference in New Issue
Block a user