p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

SliderButton graphical issue?

Open KevinGutowski opened this issue 12 years ago • 5 comments

When I change the silder's position it seems to cause a graphical issue about halfway through the slider. For some reason the left half is fine but soon as I go past "5" only half a button renders. It's a pretty small issue but it's slightly strange. It only occurs when I'm pressing down the mouse and have moved the slider over but when I let go it renders normally.

var slider;

function setup() { createCanvas(500,500); slider = createSlider(0,10,1); slider.position(width/2-60,height*3/4); //please have p5.dom.js uncommented in the html }

function draw() { background(127); textAlign(CENTER); textSize(40); text(slider.value(), width/2,height/2); }

screen shot 2014-08-11 at 1 32 59 pm

KevinGutowski avatar Aug 11 '14 20:08 KevinGutowski

I was able to reproduce this issue with p5.js v0.3.0. It only happened when I moved the slider to the right, not to the left.

outofambit avatar Aug 11 '14 21:08 outofambit

I cant repro it on p5.js v0.3.2. Should I consider this one code-resolved by some one who forgot to update the issue? Something not related to this but I though some one might be able to help, I am new to this project and to open source world for that matter (this project is my first attempt to contribute to the community :)), Can any one tell me about whom should I get in touch with or where can I find some mentor to get me started.

Thanks, Hrishit

hrishit avatar Aug 12 '14 09:08 hrishit

I think it may be only in some browsers, and could be related to this: http://help.dimsemenov.com/discussions/problems/858-weird-bug-in-chrome

lmccart avatar Aug 12 '14 10:08 lmccart

has anyone been able to reproduce this lately? I saw it previously but I don't any longer. could it have been a chrome bug that got fixed?

lmccart avatar Sep 19 '14 15:09 lmccart

seems to be fixed. closing this for now, please reopen if you still find it to be an issue.

lmccart avatar Sep 25 '14 21:09 lmccart