Skip to content

Commit 94888d4

Browse files
committed
chore: temporarily disable in-progress UI updates relating to the viewport resizer
1 parent 71c7a30 commit 94888d4

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

packages/uikit-workshop/src/scripts/components/panels-viewer.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,23 +316,27 @@ $('.pl-js-modal-resizer').mousedown(function(event) {
316316

317317
$('.pl-js-modal-cover').mousemove(function(event) {
318318
/* 3 */
319-
var panelHeight = window.innerHeight - event.clientY + 32; /* 4 */
320-
$('.pl-js-modal').css('transition', 'none');
321-
$('.pl-js-vp-iframe-container').css('transition', 'none');
319+
const panelHeight = window.innerHeight - event.clientY + 32; /* 4 */
322320
$('.pl-js-modal').css('height', panelHeight + 'px'); /* 4 */
323-
$('html').css(
324-
'--pl-viewport-height',
325-
window.innerHeight - panelHeight - 32 + 'px'
326-
); /* 4 */
321+
322+
// WIP: updating PL viewport to be resized via CSS Vars
323+
// $('.pl-js-modal').css('transition', 'none');
324+
// $('.pl-js-vp-iframe-container').css('transition', 'none');
325+
// $('html').css(
326+
// '--pl-viewport-height',
327+
// window.innerHeight - panelHeight - 32 + 'px'
328+
// ); /* 4 */
327329
});
328330
});
329331

330332
$('body').mouseup(function() {
331333
/* 5 */
332334
$('.pl-js-modal').unbind('mousemove'); /* 5 */
333335
$('.pl-js-modal-cover').css('display', 'none'); /* 5 */
334-
$('.pl-js-modal').css('transition', '');
335-
$('.pl-js-vp-iframe-container').css('transition', '');
336+
337+
// WIP: updating viewport resizer to use CSS custom props.
338+
// $('.pl-js-modal').css('transition', '');
339+
// $('.pl-js-vp-iframe-container').css('transition', '');
336340
});
337341

338342
// Copy to clipboard functionality

0 commit comments

Comments
 (0)