material-refresh icon indicating copy to clipboard operation
material-refresh copied to clipboard

Links won't work when using material refresh

Open newpen opened this issue 9 years ago • 2 comments

links on the page isn't working when using material refresh for a scrollable page, especially when the page is at the top.

newpen avatar Jan 14 '16 09:01 newpen

i have this problem too.

alieslamifard avatar Apr 06 '16 14:04 alieslamifard

You can remove the e.preventDefault(); from the touchEnd function so the links work again. Not sure what side effects this can have but it's a quick solution.

function touchEnd(e){
        if (touchPos.top > 0 || isShowLoading) {
            return;
        }
        //e.preventDefault();

        if (touchCurrentY > basePosY - customNavTop + NUM_POS_MIN_Y) {
            // Should move over the min position
            doRotate();
        } else {
            backToStart();
        }
}
...

Selmarw avatar May 10 '16 12:05 Selmarw