mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(app): user-select on desktop
This commit is contained in:
@ -35,6 +35,10 @@ ion-app,
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
ion-app.is-device {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
// Misc
|
||||
// --------------------------------------------------
|
||||
|
@ -20,11 +20,14 @@ export class App {
|
||||
}
|
||||
|
||||
hostData() {
|
||||
const device = this.config.getBoolean('isDevice', isDevice(this.win));
|
||||
const hybrid = isHybrid(this.win);
|
||||
const statusBar = this.config.getBoolean('statusbarPadding', hybrid);
|
||||
|
||||
return {
|
||||
class: {
|
||||
'is-device': device,
|
||||
'is-hydrid': hybrid,
|
||||
'statusbar-padding': statusBar
|
||||
}
|
||||
};
|
||||
|
@ -135,7 +135,6 @@
|
||||
cursor: pointer;
|
||||
opacity: var(--opacity);
|
||||
overflow: var(--overflow);
|
||||
user-select: none;
|
||||
vertical-align: top; // the better option for most scenarios
|
||||
vertical-align: -webkit-baseline-middle; // the best for those that support it
|
||||
z-index: 0;
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
:host(.checkbox-checked) .checkbox-icon {
|
||||
|
@ -62,7 +62,6 @@
|
||||
contain: strict;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
z-index: 0;
|
||||
font-kerning: none;
|
||||
appearance: none;
|
||||
|
@ -12,6 +12,8 @@ ion-infinite-scroll-content {
|
||||
min-height: $infinite-scroll-content-min-height;
|
||||
|
||||
text-align: center;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.infinite-loading {
|
||||
|
@ -9,6 +9,8 @@
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.radio-icon {
|
||||
|
@ -61,7 +61,6 @@
|
||||
contain: content;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
font-kerning: none;
|
||||
|
||||
&:active,
|
||||
|
@ -9,6 +9,8 @@
|
||||
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
:host(.ion-color) {
|
||||
|
@ -38,7 +38,6 @@ body {
|
||||
overflow: hidden;
|
||||
|
||||
touch-action: manipulation;
|
||||
user-select: none;
|
||||
|
||||
-webkit-user-drag: none;
|
||||
|
||||
|
Reference in New Issue
Block a user