robinp7720 / WebBloks

WebBloks is a web based block based html editor
3 stars 0 forks source link

Block snapping seems wonky. #2

Open alyssarosenzweig opened 9 years ago

alyssarosenzweig commented 9 years ago

Offset the drag position by the the difference from the top left corner of the block to the mouse position; it should make it seem more natural, I think.

robinp7720 commented 9 years ago

Will try to do this!

towerofnix commented 9 years ago

Aha, this was what I was about to suggest. :P

robinp7720 commented 9 years ago

Ok, I've added an x offset. I might implement a y-offset later as its alot more difficult and not really necessary.

towerofnix commented 9 years ago

Update GH repo. :P

alyssarosenzweig commented 9 years ago

....Still wonky

robinp7720 commented 9 years ago

I''m making new other changes such as c-blocks right now. It was ok before I added them. But because of the c block I have to write most of the block snapping code and moving code.