react-slideshow icon indicating copy to clipboard operation
react-slideshow copied to clipboard

zoom scale prop should accept function instead of constant value

Open lemontini opened this issue 9 months ago • 1 comments

Hello,

First of all - quite nice and not too bloated component (in terms of codebase), nice!I have come up to an issue, where I'd like the zoom effect to be inwards when click left arrow, and to be outward - when I click right arrow. Would it be difficult for you to implement that? I think all it needs is for scale prop to accept the function with parameters <from, to> instead of a constant (as it currently is). Do you agree?

P.S. I've tried to supply a value from state to scale prop, changing that value according to <from, to> values in method onStartChange, but the problem with stateful values is that they change only on next render, so it always is 1-click late...

lemontini avatar Nov 09 '23 09:11 lemontini