fix: maps mapRegion update on move

This commit is contained in:
Ruben Fiszel
2023-12-01 07:12:09 +01:00
parent 00a3e07a7a
commit d1df8a4b1e
2 changed files with 5 additions and 1 deletions
@@ -217,6 +217,9 @@
{#if render}
<div class="relative h-full w-full">
<div
on:pointermove={updateRegionOutput}
on:wheel={updateRegionOutput}
on:touchmove={updateRegionOutput}
on:pointerdown|stopPropagation={selectComponent}
bind:this={mapElement}
class={twMerge(`w-full h-full`, css?.map?.class, 'wm-map')}
@@ -105,7 +105,7 @@
/>
{:else}
<button
class="val {pureViewer
class="val text-left {pureViewer
? 'cursor-auto'
: ''} rounded px-1 hover:bg-blue-100 {getTypeAsString(json[key])}"
on:click={() => selectProp(key, json[key])}
@@ -189,6 +189,7 @@
.val.number {
@apply text-orange-600;
@apply font-mono;
}
.val.boolean {
@apply text-blue-600;