@@ -1987,8 +1987,8 @@ function create_if_block_6$1(ctx) {
19871987 let html_tag ;
19881988 let raw_value = /*formatter*/ ctx [ 16 ] ( /*val*/ ctx [ 37 ] , /*i*/ ctx [ 39 ] , valueAsPercent ( /*val*/ ctx [ 37 ] , /*min*/ ctx [ 1 ] , /*max*/ ctx [ 2 ] , /*precision*/ ctx [ 17 ] ) ) + "" ;
19891989 let t1 ;
1990- let if_block0 = create_if_block_8$1 ( ctx ) ;
1991- let if_block1 = create_if_block_7$1 ( ctx ) ;
1990+ let if_block0 = /*prefix*/ ctx [ 14 ] && create_if_block_8$1 ( ctx ) ;
1991+ let if_block1 = /*suffix*/ ctx [ 15 ] && create_if_block_7$1 ( ctx ) ;
19921992
19931993 return {
19941994 c ( ) {
@@ -2010,26 +2010,32 @@ function create_if_block_6$1(ctx) {
20102010 if ( if_block1 ) if_block1 . m ( span , null ) ;
20112011 } ,
20122012 p ( ctx , dirty ) {
2013- {
2013+ if ( /*prefix*/ ctx [ 14 ] ) {
20142014 if ( if_block0 ) {
20152015 if_block0 . p ( ctx , dirty ) ;
20162016 } else {
20172017 if_block0 = create_if_block_8$1 ( ctx ) ;
20182018 if_block0 . c ( ) ;
20192019 if_block0 . m ( span , t0 ) ;
20202020 }
2021+ } else if ( if_block0 ) {
2022+ if_block0 . d ( 1 ) ;
2023+ if_block0 = null ;
20212024 }
20222025
20232026 if ( dirty [ 0 ] & /*formatter, min, max, finalPipStep, step, precision*/ 2293774 && raw_value !== ( raw_value = /*formatter*/ ctx [ 16 ] ( /*val*/ ctx [ 37 ] , /*i*/ ctx [ 39 ] , valueAsPercent ( /*val*/ ctx [ 37 ] , /*min*/ ctx [ 1 ] , /*max*/ ctx [ 2 ] , /*precision*/ ctx [ 17 ] ) ) + "" ) ) html_tag . p ( raw_value ) ;
20242027
2025- {
2028+ if ( /*suffix*/ ctx [ 15 ] ) {
20262029 if ( if_block1 ) {
20272030 if_block1 . p ( ctx , dirty ) ;
20282031 } else {
20292032 if_block1 = create_if_block_7$1 ( ctx ) ;
20302033 if_block1 . c ( ) ;
20312034 if_block1 . m ( span , null ) ;
20322035 }
2036+ } else if ( if_block1 ) {
2037+ if_block1 . d ( 1 ) ;
2038+ if_block1 = null ;
20332039 }
20342040 } ,
20352041 d ( detaching ) {
@@ -2043,7 +2049,7 @@ function create_if_block_6$1(ctx) {
20432049 } ;
20442050}
20452051
2046- // (137:14) {#if true || prefix}
2052+ // (137:14) {#if prefix}
20472053function create_if_block_8$1 ( ctx ) {
20482054 let span ;
20492055 let t ;
@@ -2069,7 +2075,7 @@ function create_if_block_8$1(ctx) {
20692075 } ;
20702076}
20712077
2072- // (139:14) {#if true || suffix}
2078+ // (139:14) {#if suffix}
20732079function create_if_block_7$1 ( ctx ) {
20742080 let span ;
20752081 let t ;
@@ -4555,7 +4561,7 @@ function instance($$self, $$props, $$invalidate) {
45554561
45564562 // for touch devices we want the handle to instantly
45574563 // move to the position touched for more responsive feeling
4558- if ( event . type === 'touchstart' && ! target . matches ( '.rsPipVal' ) ) {
4564+ if ( event . type === 'touchstart' && ! target . closest ( '.rsPipVal' ) ) {
45594565 handleInteract ( clientPos ) ;
45604566 }
45614567 }
@@ -4628,7 +4634,7 @@ function instance($$self, $$props, $$invalidate) {
46284634
46294635 // don't trigger interact if the target is a handle (no need) or
46304636 // if the target is a label (we want to move to that value from rangePips)
4631- if ( ! targetIsHandle ( target ) && ! target . matches ( '.rsPipVal' ) ) {
4637+ if ( ! targetIsHandle ( target ) && ! target . closest ( '.rsPipVal' ) ) {
46324638 handleInteract ( normalisedClient ( event ) ) ;
46334639 }
46344640 }
0 commit comments