Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit fd2d797
Author: Rob Becker <rob.becker@workiva.com>
Date:   Wed Oct 6 20:10:37 2021 -0600

    Add null checks to avoid #35
  • Loading branch information
marcojakob committed Oct 7, 2021
1 parent 33543ce commit 914981a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/draggable_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ abstract class _EventManager {
void handleEnd(Event event, EventTarget? target, Point? position,
Point? clientPosition) {
// Set the current position.
if (position != null) {
if (position != null && _currentDrag != null) {
_currentDrag!.position = position;
}

Expand Down

0 comments on commit 914981a

Please sign in to comment.