oria / gridx

Just another powerful Dojo grid
Other
162 stars 78 forks source link

TouchScroll prevents click? #310

Open srl295 opened 9 years ago

srl295 commented 9 years ago

When using TouchScroll as per this guide I am unable to "click" on <a href.. links in the document. The click is intercepted as a touch.

Is it possible to make some cells still clickable?

bumblebee74 commented 9 years ago

Any update on this? Having similar issue.

cunick commented 7 years ago

_start: function(e){ var t = this, g = t.grid, vScrollerNode = g.vScrollerNode, hScrollerNode = g.hScrollerNode; //Start touch scroll only on mobile devices where the scroll bar can not be shown if((vScrollerNode.style.display != 'none' && vScrollerNode.offsetWidth == 1) || (hScrollerNode.style.display != 'none' && hScrollerNode.offsetHeight == 1)){ var vns = t.vInner.style, hns = t.hInner.style, bn = g.bodyNode, h = bn.clientHeight, w = bn.clientWidth, sh = vScrollerNode.scrollHeight, sw = hScrollerNode.scrollWidth; t._last = e; dom.setSelectable(g.domNode, false); t.vWrapper.style.height = (h - 4) + 'px'; t.hWrapper.style.width = (w - 4) + 'px'; vns.height = h (h - 4) / sh + 'px'; hns.width = w (w - 4) / sw + 'px'; vns.opacity = 1; hns.opacity = 1; t._vr = (h - 4) / sh; t._hr = (w - 4) / sw;

            // remove to make it works on iPad
            //event.stop(e);
        }
    },