mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fixing some GIF zooming glitches
This commit is contained in:
@ -224,6 +224,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
// avoid GIFs being skewed, played in wrong aspect ratio
|
// avoid GIFs being skewed, played in wrong aspect ratio
|
||||||
if (mMedium.isGIF()) {
|
if (mMedium.isGIF()) {
|
||||||
mView.onGlobalLayout {
|
mView.onGlobalLayout {
|
||||||
|
measureScreen()
|
||||||
Handler().postDelayed({
|
Handler().postDelayed({
|
||||||
loadGif()
|
loadGif()
|
||||||
}, 50)
|
}, 50)
|
||||||
|
@ -50,6 +50,7 @@ class MyZoomableGifTextureView(context: Context, attrs: AttributeSet) : GifTextu
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mSaveScale = 1f
|
||||||
mGifWidth = gifWidth.toFloat()
|
mGifWidth = gifWidth.toFloat()
|
||||||
mGifHeight = gifHeight.toFloat()
|
mGifHeight = gifHeight.toFloat()
|
||||||
mScreenWidth = screenWidth.toFloat()
|
mScreenWidth = screenWidth.toFloat()
|
||||||
|
Reference in New Issue
Block a user