llaske / sugarizer

Sugarizer is a web implementation of the Sugar platform to run on any device or browser
https://sugarizer.org
Apache License 2.0
197 stars 412 forks source link

Adding Drag to fill Cells Functionality in Game of Life #1150

Open dikwickley opened 1 year ago

dikwickley commented 1 year ago

@llaske in the game of life activity, it becomes very tedious to click at individual cells and enable them. What I propose is adding a click-and-drag functionality (much like using a paintbrush in paint) to fill the cells. This would also enable adding cells while generations are moving fast as adding a single cell just vanishes very quickly. I will achieve this by adding mouse-down and mouse-move event listeners. I have actually tried implementing it and it works pretty well. If you like this feature can you assign it to me? Thanks!

gol2

llaske commented 1 year ago

It's a good idea. BTW it should support both mouse and touch event. There is nothing like assigned issue. Everyone is free to contribute. See here for more.

dikwickley commented 1 year ago

i've made a PR, please review it @llaske

VedantSharma11 commented 1 year ago

@llaske since no one is working on this issue can i?

llaske commented 1 year ago

@VedantSharma11 yes, sure.

VedantSharma11 commented 1 year ago

Fine @llaske ill work on the fix then

llaske commented 4 months ago

Fixed in https://github.com/llaske/sugarizer/pull/1592