Basically checks if focus is an input field, and transfer focus to
window as soon as mouse hovers over the canvas
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: 5ce4877c69708a1ea981d9dac4b9102048152e58
Also updates a lot of other things (brush size now independent from
scale factor, split some files, and a lot other things; removed erase
safeguard as now erase is supported by undo/redo; tried adding github
prettier autoformatting to pull requests;
may have some other things as well
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: 0ba21f23c69f9dca2c3189a838b945900b01f81d
for dragging, add original target to avoid paint intermitence when dragging
windows too fast.
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
input.js is now responsible for processing mouse input and translating
it to relevant events. This allows for less bloat on the main logic in
index.js and easy implementation of new functionality
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>