Code Monkey home page Code Monkey logo

Comments (8)

mukeshghodela-easternts avatar mukeshghodela-easternts commented on June 12, 2024 5

@CametDean I have resolved it by using this regex: ^.*(Windows NT|Intel Mac OS X).*$.

from smartbanner.js.

CametDean avatar CametDean commented on June 12, 2024 2

Thank you !

from smartbanner.js.

mukeshghodela-easternts avatar mukeshghodela-easternts commented on June 12, 2024 1

@ain Yes

from smartbanner.js.

ain avatar ain commented on June 12, 2024 1

Possibly related to #503, needs investigation and a better solution.

from smartbanner.js.

AndreasFurster avatar AndreasFurster commented on June 12, 2024 1

I've the same issue. Also on a Windows 11 laptop with touch enabled. On Edge, Chrome and Firefox.

Edge:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69

Chrome: 
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Firefox:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
window.navigator.maxTouchPoints //  10
window.MSStream // undefined

from smartbanner.js.

ain avatar ain commented on June 12, 2024

Do you know if the desktop screen in question was a touchscreen?

from smartbanner.js.

CametDean avatar CametDean commented on June 12, 2024

Hi ! I have the same problem with 1440 X 734 / 1366 X 768 but my desktop screen isn't a touchscreen. Any ideas ?

from smartbanner.js.

PromInc avatar PromInc commented on June 12, 2024

This is still occurring. Was caused by #503 via commit 1e06075 it seems.
(granted I'm using v1.19.1, but the code that is causing this looks the same)

Dell Inspiron 15 7000
Windows 11
Chrome 120.0.6099.72 (Official Build) (64-bit)

window.navigator.userAgent;
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'

window.navigator.maxTouchPoints;
10

maxTouchPoints
10

image

image


Just my opinions here:

  • Assuming that a touch screen is iOS is a flaw...
  • Might be possible to rely on window.navigator.platform It returns 'Win32' in my case
    -- caniuse.com isn't responding at the moment for me to look at how safe this is to use...

from smartbanner.js.

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.