I’m thinking about my user interface dynamically changing to a more user-friendly layout when the user switches to “Tablet mode” and switches back to our “desktop” if they turned off the Tablet mode.
This requires (1) detecting tablet mode in JavaScript (2) detecting tablet mode change on / off.
I prefer pure JavaScript and the DOM (not jQuery, Modernizr, etc.).
Cause. We have a high-density user interface (on the desktop) that we simply cannot just change. I want to add an interval so that it is more contact-friendly in tablet mode. This is the same as the Windows 10 taskbar adding an extra padding between the icons in Tablet mode (presumably, other Windows 10 apps will act this way?)
Edit: I did some research in the viewing area, since it seems like a scrollbar with zero width is a trick for detecting the Tablet Mode (or Metro) mode. http://pastebin.com/ExPX7JgL
: 0 Edge. : Edge.
JavaScript .
Edge (IE12) Windows 10, Internet Explorer 11. , ( , , . , - , 100% ).
, (iOS, Android, Windows Phone, Safari OSX -ms-overflow-style: none, ). Modernizr 3 hiddenscrollbar, , .
-ms-overflow-style: none
.Windows 10 , .
.
W3C, //. , , .( Firefox/Opera/IE Chrome)
Source: https://habr.com/ru/post/1606696/More articles:Create a Webjob singleton using multiple deployments using web applications in Azure - visual-studiohttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1606692/how-to-track-changes-to-a-list&usg=ALkJrhi_anY1Tcxeh_1HR73MnatJA-Sg3gAudioServicesPlaySystemSound not playing sound on iOS 8 device - iosC # align double on 8-byte border - c #What is a “future audit”? - gitAngular.js controller not working - javascriptWhat certificate name is used for the IBM MQ.Net client installed on the application server? - c #SSL connects to MQ using .net mq SSLV3 client? - sslOptimal data structure for arbitrary two-dimensional crawl? - arraysHibernate 5.0.1 and Java 8; Provider org.hibernate.type.Java8DateTimeTypeContributor not found - javaAll Articles