fix constant dragging issue after right-click menu is removed from the display