Baconit icon indicating copy to clipboard operation
Baconit copied to clipboard

Set image source after setting decode size to fix #71

Open dreamlayers opened this issue 8 years ago • 2 comments

Images were decoding at full size despite setting decode size. This seems to be because the source was set first, so the image could decode before decode size was set.

It seems the intent was to initially display images scaled to fit, but images were decoding at full size because the source was set before the decode sizes. In Microsoft's example, the source is set after, and setting the source after fixes the problem. There may have been a race condition here, because images were sometimes displayed scaled to fit initially.

With this change the behaviour is:

Images always load scaled to fit initially. Control + mouse wheel up goes to a 1:1 view where I can zoom in and out smoothly via Control + mouse wheel. If I zoom out until the image fits, it goes back to the initial state.

dreamlayers avatar Jun 17 '16 01:06 dreamlayers

Has this made it into the store release? there is still chatter about this on the baconit subreddit...

get-fooby avatar Jan 10 '17 19:01 get-fooby

1 year later, it'd be cool if this were implemented...

I think I'll have to selfbuild and sideload

farid-fari avatar Jan 19 '18 18:01 farid-fari