Commit 48a3ad95 by doszhang

dos

parent a192040d
...@@ -208,7 +208,7 @@ function initPage() { ...@@ -208,7 +208,7 @@ function initPage() {
const displacement = parseFloat(getTranslateDistance()); const displacement = parseFloat(getTranslateDistance());
const wrapHeight = parseFloat($('.wrap').css('height')); const wrapHeight = parseFloat($('.wrap').css('height'));
canvasHeight = wrapHeight - displacement; canvasHeight = wrapHeight - displacement;
$('.upload-canvas-block,.poster-img,.show-img,.poster-canvas').css('height', wrapHeight + 'px').css('top', Math.abs(displacement) + 'px'); $('.upload-canvas-block,.poster-img,.show-img,.poster-canvas').css('height', wrapHeight + 'px').css('top', displacement < 0 ? -displacement : 0 + 'px');
if (-displacement + 179 > 243) { if (-displacement + 179 > 243) {
$('.upload-page .logo').css('top', -displacement + 183 + 'px'); $('.upload-page .logo').css('top', -displacement + 183 + 'px');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment