Git Product home page Git Product logo

Comments (10)

yairEO avatar yairEO commented on August 22, 2024

Opera has no user base (3.38%), and also Opera will be moving to use the Webkit engine very soon, so things will start to actually work without needing to change any code. further more, I have no need

from photobox.

glebm avatar glebm commented on August 22, 2024

Right, but what I am saying is we shouldn't be doing browser sniffing, but feature detection instead (it's pretty simple: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/css/pointerevents.js).

var supportsCSSPointerEvents = (function(){ var el = doc.createElement('x'); el.style.cssText = 'pointer-events:auto'; return el.style.pointerEvents === 'auto'})()

While Opera is less than 5% and will be upgraded soon, who knows what other browsers break.

Please note that this bug is fatal for those browsers, because nothing on the page is clickable.

Should I submit a pull request then do to feature detection?

from photobox.

yairEO avatar yairEO commented on August 22, 2024

there is absolutely no sniffing in the code..

from photobox.

glebm avatar glebm commented on August 22, 2024

what I mean is isIE should really just test for supportsPointerEvents

from photobox.

yairEO avatar yairEO commented on August 22, 2024

but my code is much better, I don't see why I should change it. it is the ultimate tester for IE. since IE never ever changes (no automatic updates) then this will always work

from photobox.

glebm avatar glebm commented on August 22, 2024

because what that check is doing is not IE specific, but in fact applies to all browsers that do not support pointer-events (opera, legacy android, etc)

from photobox.

glebm avatar glebm commented on August 22, 2024

I mean, like this: https://github.com/yairEO/photobox/pull/33/files

from photobox.

yairEO avatar yairEO commented on August 22, 2024

ho, I understand

from photobox.

yairEO avatar yairEO commented on August 22, 2024

pushed the change. I've change the code just a bit but it's almost the same

from photobox.

glebm avatar glebm commented on August 22, 2024

nice

from photobox.

Related Issues (20)

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.