Commit Graph

1663 Commits

Author SHA1 Message Date
Rachel Fenichel
7d6ed731c4 Merge pull request #853 from rachel-fenichel/rebuild_master_1_20
Rebuild master 1 20
2017-01-23 14:46:50 -08:00
Niklas Laxström
ef0567cd3a Localisation updates from https://translatewiki.net. 2017-01-23 13:01:31 +01:00
Rachel Fenichel
40d1eeba03 rebuild 2017-01-20 22:09:44 -08:00
Rachel Fenichel
ec027baa5e Temporary fix for broken text field validation. 2017-01-20 22:07:04 -08:00
Niklas Laxström
36eb0787cc Localisation updates from https://translatewiki.net. 2017-01-16 03:21:40 +01:00
Niklas Laxström
4ecdedec9f Localisation updates from https://translatewiki.net. 2017-01-11 19:07:44 +01:00
Rachel Fenichel
efa976e109 Merge pull request #808 from harbaum/master
Fix german translation
2017-01-09 14:32:24 -08:00
Till Harbaum
761678239e Fix german translation of 'delete x blocks' 2017-01-09 10:11:02 +01:00
Till Harbaum
0a30d176d8 Fix german translation 2017-01-07 22:42:22 +01:00
Katelyn Mann
f5f6d69d5e Merge branch 'develop' 2017-01-06 10:16:08 -08:00
picklesrus
5ab6f41fd3 recompile again. (#806) 2017-01-05 20:08:28 -08:00
picklesrus
25ed815320 Make cursor stay as a closed hand when dragging blocks around in the drag surface. Do this by applying the same style to text elements in the drag surface that we do in the main svg. (#805) 2017-01-05 15:39:06 -08:00
Rachel Fenichel
3cd62050a2 Merge pull request #802 from rachel-fenichel/bugfix/field_undo
Fix two event bugs on fields
2017-01-05 13:14:20 -08:00
picklesrus
9f3e15cd82 Move createDom call into the constructor of block drag surface. (#790) 2017-01-04 17:02:06 -08:00
Rachel Fenichel
791af631e8 Merge pull request #804 from rachel-fenichel/develop
Routine rebuild
2017-01-04 13:40:25 -08:00
Rachel Fenichel
4188226808 Routine rebuild 2017-01-04 13:26:58 -08:00
Rachel Fenichel
12ffc655b8 Merge pull request #803 from rachel-fenichel/bugfix/xml_function_rename
Init procedure blocks with empty name, and set default name in xml in…
2017-01-04 13:22:41 -08:00
Katelyn Mann
700e284a57 Merge branch 'master' into develop 2017-01-04 11:02:14 -08:00
Rachel Fenichel
158df44a94 Init procedure blocks with empty name, and set default name in xml in Blockly.Procedures.flyoutCategory 2017-01-03 18:41:28 -08:00
Rachel Fenichel
528ea86cbf Check if the text has changed before firing an event 2017-01-03 14:58:05 -08:00
Rachel Fenichel
056824593e Now that text input's setText skips setValue, it needs to explicitly create a change event 2017-01-03 14:51:28 -08:00
picklesrus
eb64921da5 Fix #794 and make the workspace grid drag along with the workspace. (#801)
There was some IE specific code that also applies to Edge so just updated
a conditional to include Edge.
2017-01-03 14:36:31 -08:00
Rachel Fenichel
20cf6abb5f End event groups when you finish editing a field 2017-01-03 14:09:41 -08:00
picklesrus
91938c3fb8 Use the drag surface when scrolling using the scrollbars. #783 (#789) 2017-01-03 10:02:28 -08:00
Niklas Laxström
7f4e21f388 Localisation updates from https://translatewiki.net. 2017-01-02 08:57:25 +01:00
Niklas Laxström
4c00de9125 Localisation updates from https://translatewiki.net. 2016-12-29 08:21:02 +01:00
Niklas Laxström
67e852990f Localisation updates from https://translatewiki.net. 2016-12-22 07:32:48 +01:00
Neil Fraser
06c2ebcba8 Merge pull request #795 from groklearning/python-string-quoting-repr
Change string quoting in Python codegen to match what `repr` does.
2016-12-21 22:03:54 -08:00
Tim Dawborn
48e58859fe Change the Python codegen for string quoting to match the behaviour of repr on a string in CPython. 2016-12-22 15:51:23 +11:00
Niklas Laxström
3831a61f43 Localisation updates from https://translatewiki.net. 2016-12-19 07:32:46 +01:00
picklesrus
6aee3ed2da Fixes #786 by checking if getComputedStyle is null in is3dSupported. We do not cache the value in this case and try again later. is3dSupported is only called while users are interacting with blockly which they cannot do while hidden so the performance implications of running the check again are minimal. (#787) 2016-12-16 09:52:19 -08:00
Rachel Fenichel
6b39c7d646 Merge pull request #782 from rachel-fenichel/feature/flyout_disable_resize
Disable workspace resizing while loading the flyout from XML
2016-12-15 11:15:39 -08:00
picklesrus
e1cd21842a Add a workspace drag surface that blocks and bubble get moved to duri… (#778)
* Add a workspace drag surface that blocks and bubble get moved to during a workspace drag.
The surface is translated using translate3d instead of svg's translate attribute so that
the browser does not have to repaint the entire workspace on every mouse move.
This is very similar to the block drag surface.

* Address code review comments

* add back hasClass_ utility removed in #748 and stop using contains since it is not supported in IE
2016-12-15 11:02:49 -08:00
Niklas Laxström
d7f8e45930 Localisation updates from https://translatewiki.net. 2016-12-15 07:27:45 +01:00
Rachel Fenichel
f54f229bc2 Disable workspace resizing while loading the flyout from XML 2016-12-14 17:06:09 -08:00
picklesrus
5b6f1debeb Move the call to disable resize before placeNewBlock so that it is of… (#777)
* Move the call to disable resize before placeNewBlock so that it is off when workspace resizeContents
gets triggered by placeNewBlock.  This fixes a bug in rtl mode where the workspace was being resized
between when the block was added to the workspace and when it was moved to the proper location.
2016-12-14 14:57:32 -08:00
Rachel Fenichel
166278e0a5 Merge pull request #775 from rachel-fenichel/feature/generator_docstrings
Update generator comments
2016-12-12 14:13:09 -08:00
Rachel Fenichel
22b018321c update generator comments 2016-12-09 22:10:36 -08:00
Rachel Fenichel
33d6f72b29 Merge pull request #650 from trodi/generator-docs
Add Generator functions to prototype + JSDoc
2016-12-09 17:46:47 -08:00
picklesrus
bdc5a02922 Fix #698 by adjusting the regex to not have \. Still not 100% sure w… (#700)
* Fix #698 by adjusting the regex to not have \.  Still not 100% sure why that was there.
Also replaces bad names on input.  There are probably more invalid names but this is
a start.
2016-12-09 17:19:17 -08:00
picklesrus
ccbaa4664e remove overflow-y on the block exporter labels so scroll bars do not show upin firefox. Also fix up the styles on the labels so that they display better in firefox. (#699) 2016-12-09 16:34:33 -08:00
picklesrus
a82bd49d7e Split the scrollbar and flyout out into their own SVG elements. They (#771)
* Split the scrollbar and flyout out into their own SVG elements. They
are siblings of the workpsace SVG.  This paves the way to make performance
improvements to workspace dragging.
2016-12-09 16:19:19 -08:00
Rachel Fenichel
b5d0303905 Merge pull request #769 from drigz/fix-touchpad-scroll
Make zoom speed independent of event granularity
2016-12-09 15:33:51 -08:00
Rodrigo Queiro
8384f8fe05 Make zoom speed independent of event granularity
Before, touchpads would give "smoother" scrolling by delivering lots of
mousewheel events with small distance changes. Because the code only
looked at the sign of deltaY, ten 5px scrolls would zoom 10x more than
one 50px scroll.

This change makes zooming with a touchpad more like zooming with a
mousewheel. On my laptop, a full-scale zoom (fully out to fully in) was
about a 5mm finger movement before, and is now about 3cm.

Fixes #758.
2016-12-09 11:12:28 +01:00
Sean Lip
30a4a1930f Fix issue with aria-liveregion not speaking. Allow sufficient time for alert noise to play before speaking the notification. 2016-12-08 19:55:42 -08:00
Sean Lip
521909b2dd Add an aria-describedby to the 'create new block group...' button in the workspace to give more context. 2016-12-08 19:23:40 -08:00
Sean Lip
5960aa8461 Use Tab keys instead of arrow keys for dialog boxes. Set role=alertdialog and read out the header/text automatically. Ensure that Esc key actually closes dialogs and that all keystrokes are captured. 2016-12-08 18:27:17 -08:00
Rachel Fenichel
da70ce4cdb Merge pull request #768 from rachel-fenichel/feature/block_factory_helpurl
Update block factory to make setting colour, helpurl, and tooltip easier
2016-12-08 14:57:19 -08:00
Rachel Fenichel
99c30007a7 Generate helpURL and tooltip for Javascript block definition 2016-12-08 14:41:40 -08:00
Rachel Fenichel
4871ff9fda Start getting helpurl and tooltip in 2016-12-08 14:26:53 -08:00