Tags: waz0820/UIKit-cross-platform
Tags
Improve Scroll Velocity (flowkey#128) * improve scroll velocity by tracking recent velocity and calculating mean value * add Array+CGPoint.swift to .xcodeproj * use Vector2 typealias and rename to absoluteValue to normLength * track velocity in self.view instead of nil * move Vector2 typealias to seperate file * seperate calculateVelocityMean from actual velocity test * remove obsolete isEqual function from PanGestureRecognizer Tests * remove private CGPoint extensions from VelocityTracker and use global ones instead * Fix fixes in sizeTo/ThatFit(s) * rebase merge master * Use Choreographer to manage Runloop (flowkey#148) * update Player.EventListener object to conform to ExoPlayer 2.6.1. interface * remove (currently not needed) isRunning, replace mHandler and mRunnable with Choreographer.postFrameCallback * add Foreground/Background handling (print only) * overhaul Logs in SDLActivity * do not call nativeInit when surface is destroyed * remove render frame callback when surface is destroyed * remove handleSurfacePaused * eventWasHandled = false for every APP_DIDENTER* or WILL_ENTER* * introduce start/stop methods in SDLActivity * add isRunning * don't call nativeQuit in stop method, use new quit method instead * check frameTimeNanos * Revert "check frameTimeNanos" This reverts commit f74f7e7. * delete foreground background events * update Player.EventListener object to conform to ExoPlayer 2.6.1. interface * remove (currently not needed) isRunning, replace mHandler and mRunnable with Choreographer.postFrameCallback * add Foreground/Background handling (print only) * overhaul Logs in SDLActivity * do not call nativeInit when surface is destroyed * remove render frame callback when surface is destroyed * remove handleSurfacePaused * eventWasHandled = false for every APP_DIDENTER* or WILL_ENTER* * introduce start/stop methods in SDLActivity * add isRunning * don't call nativeQuit in stop method, use new quit method instead * check frameTimeNanos * Revert "check frameTimeNanos" This reverts commit f74f7e7. * delete foreground background events * Revert "update Player.EventListener object to conform to ExoPlayer 2.6.1. interface" This reverts commit ad2b218. * Revert "update Player.EventListener object to conform to ExoPlayer 2.6.1. interface" This reverts commit ad2b218. * rename start,stop and quit * Update SDLActivity.kt * Update order of doFrame callback * rename SDLActivity.render to nativeRender and remove return type * add median() to Array<CGPoint> * fine tune velocity * use custom bezier ease out function * add CGPoint / CGFloat operation * take previous velocity into accout * delete VelocityTracker * move previousVelocity to UIScrollView * fix typo in acceleration * remove previousVelocity from UIPanGestureRecognizer * limit velocity to 2000 * reset previous and current velocity when dragging ended * refactor timeSinceLastMovement calculation * testVelocity * introduce maxAbsoluteVelocity * customEaseOut as let closure * kick maxAbsoluteVelocity * delete Vector2 * also set touchesMovedTimestamp on touchesBegan * cleanup tests * rename to initialVelocity * kick previousVelocity and make currentVelocity non optional * add timestamp to UITouch and use it in UIPanGestureRecognizer * use timeDiffMilliseconds * Lots of changes (note: custom SDL build, will break!): - Clean up and simplify velocity scroll - Fix spikes in pan velocity - Animate during velocity scroll deceleration - Greatly improve seeking performance on Android - Player performance improvements * Revert to low resolution event timestamps, still works fine * fix tests by adding timestamp: 0 in UITouch inits * Fix isDecelerating when scrolling beyond bounds. Add performance optimization. * Fix bug when scrolling UIScrollView during a CAAnimation * Implement PR feedback * Make CAlayer.presentation() public * Clean up UIKit (flowkey#165)
fix touch handling (flowkey#110) * fix touch handling * remove prints * improve UIPanGestureRecognizer * improvements * style