fixed popup screen bug and overlap between swipe gestures and cursor movement