makes width prop reactive

This commit is contained in:
Sudev Kiyada 2025-05-29 19:04:46 +05:30
parent a0ff39be8a
commit e03717c514
Failed to extract signature

View file

@ -133,7 +133,7 @@
let wh = $state(0);
let fixed = $state(false);
let offset_top = 0;
let width = 1;
let width = $state(1);
let top_px = $derived(Math.round(top * wh));
let bottom_px = $derived(Math.round(bottom * wh));