Coder Social home page Coder Social logo

Comments (13)

OneHedgehog avatar OneHedgehog commented on August 29, 2024 2

The prev version of my workaround have some troubles. When you put some tags inside a tag, the target element is the last child tag. And, if it isn't a link, it obviosly doesn't have a href attr, so our redirect didn't work

Finally fix it in my next pull req:
https://github.com/codrops/ElastiStack/pull/13/files

from elastistack.

alexscloh avatar alexscloh commented on August 29, 2024 1

any solution to fix it? i need a click link in each card

from elastistack.

weirdo-o avatar weirdo-o commented on August 29, 2024 1

给需要跳转的元素添加了touchend以后,滑动的时候碰到元素就会触发跳转,用户体验很差啊

from elastistack.

adenadoume avatar adenadoume commented on August 29, 2024

Yup, am having exact same issue, trying to figure out how to make link work on touch devices...

Preparing coffee and going for a long night I guess :)

From my little knowledge I believe it has to do with a touchstart event setting the zindex property, link is in background in touch devices..

Any help much appreciated, amzing script btw :)

from elastistack.

 avatar commented on August 29, 2024

Ok! I have contacted a cool developer, and he said :
"It's not the z-index, it looks like a touch event on mobile triggers a drag."
If you have any idea ! Your help would be really appreciated.

from elastistack.

abinktidars avatar abinktidars commented on August 29, 2024

yes, i was used "On Touch Event" in jquery ui can solving the problem to give links in stack (li)

from elastistack.

talifa avatar talifa commented on August 29, 2024

any idea?

from elastistack.

OneHedgehog avatar OneHedgehog commented on August 29, 2024

Workaround: To add redirect on touchevent

Smth like this. Elem is your link in dom

elem.addEventListener("touchend",()=> { window.location.href = "https://www.google.com.ua" });

from elastistack.

OneHedgehog avatar OneHedgehog commented on August 29, 2024

Also opened a pull request
https://github.com/codrops/ElastiStack/pull/9/files

from elastistack.

talifa avatar talifa commented on August 29, 2024

Unfortunately, the bug is still there.

from elastistack.

weirdo-o avatar weirdo-o commented on August 29, 2024

同样的问题,求大神解救

from elastistack.

talifa avatar talifa commented on August 29, 2024

@OneHedgehog спааааааасибоооу

from elastistack.

OneHedgehog avatar OneHedgehog commented on August 29, 2024

It seems like that issue can be closed :)

from elastistack.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.