Close Me

Touch Helper

Toggles the Scotch Panel on touch (mimics a fast click for mobile devices, try it!).

Fair warning: This is extremely sensitive. I would use sparingly and only when you know your users won't accidentally touch this on mobile.


                    touchSelector: '.toggle-on-touch-only, .toggle-on-both',
                    clickSelector: '.toggle-on-click-only, .toggle-on-both',

                    containerSelector: 'body',
                    direction: 'right',
                    duration: 300,
                    transition: 'ease',
                    distanceX: '70%',
                    enableEscapeKey: true