Bug fix: prevent the gesture event when popupwindow shown