everestpipkin / image-scrubber

A friendly browser-based tool for anonymizing photographs taken at protests
https://everestpipkin.github.io/image-scrubber
MIT License
928 stars 82 forks source link

Add path interpolation #35

Closed bMacSwigg closed 4 years ago

bMacSwigg commented 4 years ago

Resolves #28 by interpolating between mouse move events. Records previous position to interpolate a rectangle between path points.

Also removes redundant and buggy path marking for touch events: while logging to debug, I noticed that the pos fetched at the end of handleTouchMove() was returning NaNs. The constructed mouse move that is dispatched seems sufficient, so I removed that path marking.

everestpipkin commented 4 years ago

Excellent! This feels much smoother and nicer to use.