forked from external-repos/squoosh
Compare commits
3 Commits
v1.9.2
...
android-ta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b5bfebf3c | ||
|
|
01885dbbc1 | ||
|
|
556a98cb32 |
@@ -54,4 +54,5 @@ $horizontalPadding: 15px;
|
|||||||
.options-scroller {
|
.options-scroller {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,6 +177,17 @@ export default class Output extends Component<Props, State> {
|
|||||||
const clonedEvent = new (event.constructor as typeof Event)(event.type, event);
|
const clonedEvent = new (event.constructor as typeof Event)(event.type, event);
|
||||||
this.retargetedEvents.add(clonedEvent);
|
this.retargetedEvents.add(clonedEvent);
|
||||||
this.pinchZoomLeft.dispatchEvent(clonedEvent);
|
this.pinchZoomLeft.dispatchEvent(clonedEvent);
|
||||||
|
|
||||||
|
// Unfocus any active element on touchend. This fixes an issue on (at least) Android Chrome,
|
||||||
|
// where the software keyboard is hidden, but the input remains focused, then after interaction
|
||||||
|
// with this element the keyboard reappears for NO GOOD REASON. Thanks Android.
|
||||||
|
if (
|
||||||
|
event.type === 'touchend' &&
|
||||||
|
document.activeElement &&
|
||||||
|
document.activeElement instanceof HTMLElement
|
||||||
|
) {
|
||||||
|
document.activeElement.blur();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render(
|
render(
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 860px) {
|
@media (min-width: 860px) {
|
||||||
max-height: 100%;
|
max-height: calc(100% - 40px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.intro {
|
.intro {
|
||||||
composes: abs-fill from '../../lib/util.scss';
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: 1fr min-content;
|
grid-template-rows: 1fr min-content;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -29,6 +28,9 @@
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 20px 0 0;
|
padding: 20px 0 0;
|
||||||
|
height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-container {
|
.logo-container {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font: 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif;
|
font: 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif;
|
||||||
|
|||||||
Reference in New Issue
Block a user