<script>
import { browser } from '$app/env';
import { maxSize } from '$lib/config';
+ import { sensor } from '$lib/stores/widgets';
export let x;
export let y;
const fetchItems = function fetchItems( left, top, right, bottom ) {
clearTimeout(timer);
timer = setTimeout(() => {
- console.log('fetching', left, top, right, bottom);
+ sensor.set({ left, top, right, bottom });
}, 50);
}