Commit Graph

4894 Commits

Author SHA1 Message Date
Dan Abramov b2203ac964 This sucks, everything sucks 2024-11-02 22:39:26 +00:00
Dan Abramov 68578f3860 Fix display of other images in the gallery 2024-11-02 22:32:32 +00:00
Dan Abramov ea8ae4e7f7 Animate crop 2024-11-02 20:06:45 +00:00
Dan Abramov 394aadd14e Give interpolateFromThumbnail control over style 2024-11-02 19:09:50 +00:00
Dan Abramov 95615d47f6 Control width/height from interpolation 2024-11-02 19:06:31 +00:00
Dan Abramov b3f4338d21 Fix gestures outside image bounds 2024-11-02 18:56:01 +00:00
Dan Abramov 01b350175e Round avatars on mobile web 2024-11-02 15:43:20 +00:00
Dan Abramov 852b8ae271 Rename shapes to semantic meanings
It looks like after all I do want to fork based on those.
2024-11-02 15:43:20 +00:00
Dan Abramov d600cc3343 Preserve shape in lightbox 2024-11-02 15:43:20 +00:00
Dan Abramov e04f8341fd Animate feed/SP avatars too 2024-11-02 15:43:20 +00:00
Dan Abramov 77e71cf353 Animate profile avis on open too 2024-11-02 15:43:20 +00:00
Dan Abramov 092494f891 Adjust velocity factor 2024-11-02 15:43:05 +00:00
Dan Abramov ca945a9871 More foolproof calculation 2024-11-02 11:09:12 +00:00
Dan Abramov b2019519d4 Fix calculation 2024-11-02 04:27:48 +00:00
Dan Abramov 4949b7cdc5 Respect reduce motion 2024-11-02 04:17:28 +00:00
Dan Abramov 24283427fd Support animating out of different index 2024-11-02 04:08:23 +00:00
Dan Abramov b472d54b34 Fix animation to wrong index 2024-11-02 03:40:26 +00:00
Dan Abramov e8ec306839 Handle different thumbnail aspects 2024-11-02 03:17:01 +00:00
Dan Abramov e01f69132b Prevent gestures during animation 2024-11-02 02:57:39 +00:00
Dan Abramov d8c1354e96 Make flying away nice 2024-11-02 02:52:35 +00:00
Dan Abramov 58e261676b Opacity for controls 2024-11-02 01:28:18 +00:00
Dan Abramov dcf72ae381 Fix type 2024-11-02 01:18:29 +00:00
Dan Abramov 0032aa1620 Half-broken dismiss animation 2024-11-02 01:12:37 +00:00
Dan Abramov f08e542995 Key lightbox by id 2024-11-02 00:49:53 +00:00
Dan Abramov 68ab910d5a Conslidate ImageView props 2024-11-02 00:46:28 +00:00
Dan Abramov de1a6fe14d Prevent OOB scroll on iOS when zoomed in 2024-11-02 00:35:56 +00:00
Dan Abramov aeda009b2f FIX DA CALCULATION!!!!!!
Holy shit this took me a while. Basically we should be treating the original image center as the scale origin rather than the scaled image center. Otherwise expanding feels unsteady.
2024-11-02 00:35:56 +00:00
Dan Abramov e1d1735f56 Combine two functions 2024-11-02 00:35:56 +00:00
Dan Abramov 03679c4e51 Extract a function 2024-11-02 00:35:56 +00:00
Dan Abramov 4fb92ab059 Animate transform 2024-11-02 00:35:56 +00:00
Dan Abramov d35fcca01e Animate opening 2024-11-02 00:35:56 +00:00
Dan Abramov 0be8c55780 Integrate dismissal with root lightbox view 2024-11-02 00:35:56 +00:00
Dan Abramov fe7d97b0bf Move swipe gesture handling upwards 2024-11-02 00:35:56 +00:00
Dan Abramov 9c28b3a491 Lift the swipe animated value upwards 2024-11-02 00:35:56 +00:00
Dan Abramov 6ee2b05ac0 Move LightboxFooter into the implementation file 2024-11-02 00:35:34 +00:00
Dan Abramov ab6877795f Refactor LightboxFooter props 2024-11-02 00:08:31 +00:00
Dan Abramov 00ff654134 Unindent 2024-11-01 23:50:20 +00:00
Dan Abramov fd27242ce8 Unify lightbox types 2024-11-01 23:49:12 +00:00
Dan Abramov 431c81981c Refactor lightbox footer to render prop 2024-11-01 23:42:42 +00:00
Dan Abramov 5e1a2fcf06 Use safe aspect for lightbox calculations 2024-11-01 22:53:14 +00:00
Dan Abramov c95f8e8659 Handle division by zero in the hook 2024-11-01 22:53:14 +00:00
Dan Abramov 79a61adef7 Wire up known dimensions to the lightbox 2024-11-01 22:53:14 +00:00
Dan Abramov 0ae5033147 Make lightbox use the same cache 2024-11-01 22:53:14 +00:00
Dan Abramov 6b478644e2 Move useImageDimensions into image-sizes 2024-11-01 22:53:14 +00:00
Dan Abramov fe33a21d3e Factor useImageDimensions out of useImageAspectRatio 2024-11-01 22:53:14 +00:00
Dan Abramov 412426bac3 Derive aspect on the fly 2024-11-01 22:53:14 +00:00
Dan Abramov 56740a3d26 Rm unused fields 2024-11-01 22:53:14 +00:00
Dan Abramov af11271ff7 Make image-sizes LRU
Code is copy paste from useImageDimensions.ts
2024-11-01 22:53:14 +00:00
Dan Abramov 33f4ab2697 Rewrite image-sizes.fetch to avoid mixing async styles 2024-11-01 22:53:14 +00:00
Dan Abramov 71c4add42e Handle src change 2024-11-01 22:53:14 +00:00