codepen link:
Hello everyone,
I am currently building a light bright app. It’s supposed to function similar to this
However, my problem is that mouse drag does not always work. The code that is supposed to take care of this is shown below.
on: {
mouseover: function(event) {
if (event.buttons === 1) {
event.target.style.background =
"rgba(" +
colour[0] +
", " +
colour[1] +
", " +
colour[2] +
", 1)";
}
},
The issue I am having is that sometimes when I hold the mouse click down the circle sometimes changes but sometimes I get the circle “not-allowed” icon. How can i make sure it works all the time?