File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed
examples/clay-official-website Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 500500
501501 let linkContents = customData . link . length . value > 0 ? textDecoder . decode ( new Uint8Array ( memoryDataView . buffer . slice ( customData . link . chars . value , customData . link . chars . value + customData . link . length . value ) ) ) : 0 ;
502502 memoryDataView . setUint32 ( 0 , renderCommand . id . value , true ) ;
503- if ( linkContents . length > 0 && ( window . mouseDownThisFrame || window . touchDown ) && instance . exports . Clay_PointerOver ( 0 ) ) {
504- window . location . href = linkContents ;
505- }
506503 if ( linkContents . length > 0 ) {
507504 element . href = linkContents ;
508505 }
567564 element . style . pointerEvents = customData . disablePointerEvents . value ? 'none' : 'all' ;
568565 let linkContents = customData . link . length . value > 0 ? textDecoder . decode ( new Uint8Array ( memoryDataView . buffer . slice ( customData . link . chars . value , customData . link . chars . value + customData . link . length . value ) ) ) : 0 ;
569566 memoryDataView . setUint32 ( 0 , renderCommand . id . value , true ) ;
570- if ( linkContents . length > 0 && ( window . mouseDownThisFrame || window . touchDown ) && instance . exports . Clay_PointerOver ( 0 ) ) {
571- window . location . href = linkContents ;
572- }
573567 if ( linkContents . length > 0 ) {
574568 element . href = linkContents ;
575569 }
854848</ script >
855849< body >
856850</ body >
857- </ html >
851+ </ html >
Original file line number Diff line number Diff line change 500500
501501 let linkContents = customData . link . length . value > 0 ? textDecoder . decode ( new Uint8Array ( memoryDataView . buffer . slice ( customData . link . chars . value , customData . link . chars . value + customData . link . length . value ) ) ) : 0 ;
502502 memoryDataView . setUint32 ( 0 , renderCommand . id . value , true ) ;
503- if ( linkContents . length > 0 && ( window . mouseDownThisFrame || window . touchDown ) && instance . exports . Clay_PointerOver ( 0 ) ) {
504- window . location . href = linkContents ;
505- }
506503 if ( linkContents . length > 0 ) {
507504 element . href = linkContents ;
508505 }
567564 element . style . pointerEvents = customData . disablePointerEvents . value ? 'none' : 'all' ;
568565 let linkContents = customData . link . length . value > 0 ? textDecoder . decode ( new Uint8Array ( memoryDataView . buffer . slice ( customData . link . chars . value , customData . link . chars . value + customData . link . length . value ) ) ) : 0 ;
569566 memoryDataView . setUint32 ( 0 , renderCommand . id . value , true ) ;
570- if ( linkContents . length > 0 && ( window . mouseDownThisFrame || window . touchDown ) && instance . exports . Clay_PointerOver ( 0 ) ) {
571- window . location . href = linkContents ;
572- }
573567 if ( linkContents . length > 0 ) {
574568 element . href = linkContents ;
575569 }
854848</ script >
855849< body >
856850</ body >
857- </ html >
851+ </ html >
Original file line number Diff line number Diff line change 394394 let configMemory = new Uint8Array ( memoryDataView . buffer . slice ( renderCommand . config . value , renderCommand . config . value + config . __size ) ) ;
395395 let linkContents = config . link . length . value > 0 ? textDecoder . decode ( new Uint8Array ( memoryDataView . buffer . slice ( config . link . chars . value , config . link . chars . value + config . link . length . value ) ) ) : 0 ;
396396 memoryDataView . setUint32 ( 0 , renderCommand . id . value , true ) ;
397- if ( linkContents . length > 0 && ( window . mouseDownThisFrame || window . touchDown ) && instance . exports . Clay_PointerOver ( 0 ) ) {
398- window . location . href = linkContents ;
399- }
400397 if ( ! dirty && ! MemoryIsDifferent ( configMemory , elementData . previousMemoryConfig , config . __size ) ) {
401398 break ;
402399 }
528525< body >
529526</ body >
530527
531- </ html >
528+ </ html >
You can’t perform that action at this time.
0 commit comments