diff --git a/frameworks/dock/pointer_input_device.cpp b/frameworks/dock/pointer_input_device.cpp index f0024d6777189bd954c893e78f3279113f5aaa9f..7cb3fdc0158ca02a856a38c2e94f8e8e8fcb730a 100644 --- a/frameworks/dock/pointer_input_device.cpp +++ b/frameworks/dock/pointer_input_device.cpp @@ -314,12 +314,10 @@ void PointerInputDevice::UpdateEventViews(UIView* view) // invalid touchable and draggable view will be reset to nullptr if ((touchableView_ != nullptr) && RootView::FindSubView(*view, touchableView_)) { touchableView_ = nullptr; - lastPos_ = curPos_; } if ((draggableView_ != nullptr) && RootView::FindSubView(*view, draggableView_)) { draggableView_ = nullptr; - lastPos_ = curPos_; dragLastPos_ = curPos_; dragLen_ = {0, 0}; dragStep_ = {0, 0};