Skip to content

Commit 9afaad2

Browse files
committed
Safari 5 support fixes and transform positioning
1 parent 6ed191b commit 9afaad2

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Applications/FrostedColours

Scripts/WindowManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
IE11Booster = true,
2323
loadingOverlay = true,
2424
flipped = false,
25-
useTransform = false;
25+
useTransform = true;
2626

2727
/*const*/var supportsPointer = typeof PointerEvent !== "undefined";
2828

@@ -423,6 +423,7 @@ Dialog.prototype.move = function (x, y) {
423423
if (useTransform) {
424424
this._x = x, this._y = y;
425425
this.target.style.transform = "translate(" + toPixels(x) + "," + toPixels(y) + ")";
426+
this.target.style.webkitTransform = "translate(" + toPixels(x) + "," + toPixels(y) + ")";
426427
} else this.x = x, this.y = y;
427428
}
428429
Dialog.prototype.resize = function (width, height) { this.width = width, this.height = height, this.target.style.boxSizing = "border-box"; }

Styles/desktop.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ body:not([blur]) .window > article {
117117

118118
#wallpaper {
119119
position: absolute;
120-
width: 100vw;
121-
height: 100vh;
120+
width: 100%;
121+
height: 100%;
122122
bottom: 0;
123123
right: 0;
124124
left: 0;

0 commit comments

Comments
 (0)