@@ -316,23 +316,27 @@ $('.pl-js-modal-resizer').mousedown(function(event) {
316
316
317
317
$ ( '.pl-js-modal-cover' ) . mousemove ( function ( event ) {
318
318
/* 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 */
322
320
$ ( '.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 */
327
329
} ) ;
328
330
} ) ;
329
331
330
332
$ ( 'body' ) . mouseup ( function ( ) {
331
333
/* 5 */
332
334
$ ( '.pl-js-modal' ) . unbind ( 'mousemove' ) ; /* 5 */
333
335
$ ( '.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', '');
336
340
} ) ;
337
341
338
342
// Copy to clipboard functionality
0 commit comments