doodle-tutorials icon indicating copy to clipboard operation
doodle-tutorials copied to clipboard

Backwards carousel example.

Open brooksdubois opened this issue 1 year ago • 2 comments

       keyChanged += pressed {
             when (it.code) {
                    ArrowLeft  -> next    () // Move Carousel forward one
                    ArrowRight -> previous() // Move Carousel back one
               }
         }

this is actually backwards. You would think Right goes next and left goes previous

brooksdubois avatar May 21 '24 20:05 brooksdubois

this code is actually so readable a non-coder friend spotted while I was just showing an example 😆

brooksdubois avatar May 21 '24 20:05 brooksdubois

That's a fair point on the direction. And glad to hear the code is readable. That's a key goal for Doodle overall.

Hope you're finding it useful and are able to build cool stuff with it.

pusolito avatar May 22 '24 17:05 pusolito