Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
tub-floorplan tub-floorplan
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Tobias Zeumer
  • tub-floorplantub-floorplan
  • Issues
  • #30

Closed
Open
Created Jul 03, 2018 by Tobias Zeumer@tobias.zeumerMaintainer

Mobile/Desktop und click/touchstart

Desktop funktioniert alles wie gewünscht. Insgesamt ist gelegentlich aber etwas irritierend, wie Browser click und touchstart interpretieren. Für Desktop funktioniert click auch für SVG-Elemente (Marker und Regale). Mobil allerdings nur touchstart. Allerdings folgt einem touchstart-"Klick" noch ein click, womit dann $(window).on("touchstart click", function() { ... }); zum Zurücksetzen einiger Elemente ausgelöst wird. Doof.

Die Lösung sollte sein, statt click jeweils on("mousedown touchstart"), function(e) ... zu nehmen.

Ignorieren wir an dieser Stelle Posts, die nochmal Spezielles bei Win8/10 PCs mit Touchscreen + Maus erwähnen. Vielleicht ja auch schon historisch...

Edited Jul 04, 2018 by Tobias Zeumer
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking