hjyssg / ShiguReader

硬核宅宅资源管理器. Ultimate Manga Resource Manager
MIT License
397 stars 45 forks source link

Save Image Ratio #116

Closed boiio closed 3 years ago

hjyssg commented 3 years ago

改成叫 keep_zoom_scale,ratio是高宽的比例

然后zoom scale需要保存到this上面

hjyssg commented 3 years ago

我周末帮你测试修改一下再merge 因为我觉得那个数字不需要存到state 而且 this.state.zoom_scale=newHeight/this.getMaxHeight(); 这个写法react不允许的

boiio commented 3 years ago

我周末帮你测试修改一下再merge 因为我觉得那个数字不需要存到state 而且 this.state.zoom_scale=newHeight/this.getMaxHeight(); 这个写法react不允许的

OK

hjyssg commented 3 years ago

https://github.com/hjyssg/ShiguReader/pull/120/files

hjyssg commented 3 years ago

你写的这个PR应该就不work