Fix scroll gesture handling