Open yigitserin opened 5 years ago
seems a known issue. but a tough one to fix.
My product manager is arguing about this. Is there any solution, or a compromise solution to hide the bug?
My workaround was not setting maximum zoom scale and allowing infinite zoom.
Thank you. My workaround is in ViewPortHandler.swift, private func limitTransAndScale(matrix: inout CGAffineTransform, content: CGRect?)
_scaleX = max(_minScaleX, matrix.a)
_scaleY = max(_minScaleY, matrix.d)
is there any update on this?
What did you do?
I set my chart's maximum zoom scale to a value by using:
What did you expect to happen?
I expected my chart to be zoomed to 100x scale without problems.
What happened instead?
My chart can be scrolled to 100x scale. But when you reach this zoom level, chart offset slightly changes and user loses their zoom position. Check the attached video.
Charts Environment
Charts version/Branch/Commit Number: 3.2.2 Xcode version: 10.2 Swift version: 4.2 Platform(s) running Charts: iOS macOS version running Xcode: 10.14.4
Demo Video
Demo Video Link
Demo Code