โจdrag the bar
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
browser โฉ event โฉ type โฉ mouse โฉ "mousemove" โฉ example โฉ drag the bar
drag the bar to change its width.
bar.onmousedown -> listen to "mousemove" events
"mousemove" with event.buttons = 0 ("mouseup" on anything) -> stop listening.
replit โฉ drag the bar
const { log } = console
const {max} = Math;
// โญ๏ธ import
import { $, $all, elem } from './js/ext/Node_ext.js'; // Node extension
// --------------------------------------------------------------------
let