zetay / blockly

Automatically exported from code.google.com/p/blockly
1 stars 1 forks source link

On iPad, scrolling code area causes dragged blocks to also scroll code area #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On an iPad, in the Blockly Graphing Calculator (or any Blockly interactive 
where the block palette has menu items such as Logic), put a few blocks in the 
code area as usual.
2. Scroll the code area by dragging the whitespace.
3. Now place another block in the code area and drag it around.

What is the expected output? What do you see instead?

The code area scrolls as the block is being dragged. I expect the code are to 
remain stationary as I drag blocks inside it.

What browser are you using?

Mobile Safari

Please provide any additional information below.

Original issue reported on code.google.com by esmac...@gmail.com on 29 May 2014 at 6:07

GoogleCodeExporter commented 9 years ago
Confirmed on Android devices too.  Looks like an event is leaking...

Original comment by neil.fra...@gmail.com on 29 May 2014 at 7:00

GoogleCodeExporter commented 9 years ago
Fix for this issue, mouseup was not bound for touch devices so users could 
interact with non-Blockly elements.
And the main workspace dragMode was never set to false.

Fix involves binding to the mouse up event during the mousedown and unbinding 
during mouseup.

Original comment by richard...@googlemail.com on 9 Jun 2014 at 2:46

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you richard for the patch.  Works great!
Checked-in and fixed.

Original comment by neil.fra...@gmail.com on 8 Aug 2014 at 7:05

GoogleCodeExporter commented 9 years ago
Would it be accurate to say that this bug still impacts the sandbox on the main 
blockly page: https://developers.google.com/blockly/

Or is this a new bug?

Original comment by okach...@gmail.com on 5 Nov 2014 at 10:30