johnomarkid / bfcropinterface Goto Github PK
View Code? Open in Web Editor NEWA better crop tool for iOS
License: MIT License
A better crop tool for iOS
License: MIT License
I'm exploring the unmodified CropDemo on an iPhone5 and am having difficulty controlling the crop rectangle.
The net result is that it is quite difficult to set the crop rectangle to the full height or width of the original image.
Often the crop rectangle ends up 1-3 pixels too short or narrow. Once the white crop handles intersect the edge of the photo, they are nearly impossible to move again.
I have the impression that the crop handle 'jumps' to the touch down location - which is annoying when I'm trying to make a very slight change in the rectangle size.
My guess is that the touch outside detection is occasionally getting triggered when I actually want to grab a handle. Either the touch outside or handle touch seems to calculate position based on a touch offset and the math is a bit wrong in some cases, preventing the edge of the crop rectangle from being moved to the precise edge of the photo. I haven't looked at the code enough to figure out why the crop handles then seem to get locked in place.
Also, I'll note that rotating the device to landscape seems to lay a resized copy of the original photo behind the portrait sized photo and shadow mask. The buttons are also not moving like you'd expect.
David
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.