Mango/slideout

tolerance option need to discuss

icai opened this issue · 0 comments

icai commented

image

must draw a ratio(h/w > ??) rectangle to open the slidemenu.

        rect.w = (e.pageX - this.offsetLeft) - rect.startX;
        rect.h = (e.pageY - this.offsetTop) - rect.startY;
        ratio = rect.h /rect.w > ?? && Math.abs(self._currentOffsetX) > self._tolerance