Skip to content

Commit

Permalink
Fix CompositeMode for dragging event
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonicclay committed Jan 14, 2020
1 parent 2016180 commit d5704af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/edit-modes/src/lib/composite-mode.js
Expand Up @@ -7,6 +7,7 @@ import type {
PointerMoveEvent,
StartDraggingEvent,
StopDraggingEvent,
DraggingEvent,
GuideFeatureCollection
} from '../types.js';
import { BaseGeoJsonEditMode } from './geojson-edit-mode.js';
Expand Down Expand Up @@ -48,6 +49,10 @@ export class CompositeMode extends BaseGeoJsonEditMode {
return this._coalesce(handler => handler.handleStopDragging(event, props));
}

handleDragging(event: DraggingEvent, props: ModeProps<FeatureCollection>): void {
return this._coalesce(handler => handler.handleDragging(event, props));
}

getGuides(props: ModeProps<FeatureCollection>): GuideFeatureCollection {
// TODO: Combine the guides *BUT* make sure if none of the results have
// changed to return the same object so that "guides !== this.state.guides"
Expand Down

0 comments on commit d5704af

Please sign in to comment.