#125, #89: improving performance of instabinge modal for both desktop and touch