svelte-log-view 5.0.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/LogView.svelte +5 -1
package/package.json
CHANGED
package/src/LogView.svelte
CHANGED
|
@@ -127,12 +127,16 @@
|
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
|
|
131
|
+
function onclick(event) {
|
|
132
|
+
setSelected(start + Math.floor(event.clientY / 21)); // TODO calculate position ?
|
|
133
|
+
}
|
|
130
134
|
</script>
|
|
131
135
|
|
|
132
136
|
<svelte:window {onkeydown} />
|
|
133
137
|
<log-content bind:this={content}>
|
|
134
138
|
{#each visible as entry, i (i)}
|
|
135
|
-
<log-row>
|
|
139
|
+
<log-row {onclick} {onkeydown} role="none">
|
|
136
140
|
<slot {entry} {selected} position={start + i} />
|
|
137
141
|
</log-row>
|
|
138
142
|
{/each}
|