saabi / svelte-image-input

A Svelte component for loading, scaling and adjusting profile pictures.
ISC License
7 stars 3 forks source link

Add option to handle pasting on the entire document window or only if focused on the component #3

Open saabi opened 1 year ago

saabi commented 1 year ago

Accepting Ctrl-V in the entire window (excluding any other focused paste targets on the page) is convenient but can be a problem when multiple ImageInput components are instanced simultaneously. Add property to select whether the paste driver is handled during the page bubbled paste event or during the component's.