102 Commits

Author SHA1 Message Date
Rachel Fenichel 1d1321a00d Changes per neil's comments, plus a rebuild 2016-09-21 16:25:44 -07:00
Rachel Fenichel 109e4bb352 Move code to touch.js 2016-09-07 17:42:09 -07:00
Rachel Fenichel 2774cc1663 Fix longpress in flyout; leave debug messages in 2016-09-01 13:08:59 -07:00
Rachel Fenichel 1c025672b3 Clear touch identifier at the ends of more drags. Includes flyout background, right-clicks on blocks, and loading sounds. 2016-08-31 15:56:37 -07:00
Rachel Fenichel b77c080678 Fix bugs with missing mouseUp events on mutators. Also stop filtering out key presses. 2016-08-25 15:18:53 -07:00
Rachel Fenichel 6b7965a727 Ignore everything but the first touch stream 2016-07-20 17:03:24 -07:00
rachel-fenichel aca074891d Fix some problems with flyout rendering (#461) 2016-06-27 17:27:08 -07:00
Rachel Fenichel c4cad3c6e4 Cache screen CTM for performance improvement. 2016-06-17 14:26:04 -07:00
Rachel Fenichel 5532e879eb Check for infinity with == in scrollbar 2016-05-27 10:38:41 -07:00
Rachel Fenichel 8afb04d9ee Move values to prototype and use coordinate. 2016-05-27 10:37:40 -07:00
Rachel Fenichel 06b9bb68e6 Rename knob to handle 2016-05-27 10:25:19 -07:00
Rachel Fenichel 5752913b4d Make some variables private and some functions public. 2016-05-26 15:22:24 -07:00
Rachel Fenichel f486ac949c use helper functions to set attribute on svg and in model at the same time. 2016-05-25 16:38:19 -07:00
Rachel Fenichel 4562ff8d74 Split scrollbar code into content changes and view changes; store dimensions in variables instead of querying the dom. 2016-05-25 16:20:20 -07:00
Rachel Fenichel d6d34bf9ce Cache host metrics and make sure something has changed before resizing scrollbars. 2016-05-25 14:09:39 -07:00
Rachel Fenichel 77a8b92ac2 Merge branch 'develop' into feature/horizontal_toolbox_port 2016-05-11 11:44:38 -07:00
Katelyn Mann ca16d1fefe An alternate (and less expensive) way to keep stuff outside of the blockly div
from getting selected. Use e.preventDefault instead of adding and removing
classes on mousedown and mouseup.  This keeps the browser from having to
potentially recacluate style on mousedown and mouseup events.
2016-05-04 19:12:38 -07:00
Rachel Fenichel de58c07286 Shift scrollbar position slightly 2016-04-25 14:31:47 -07:00
Rachel Fenichel a27fe99be4 Merge branch 'develop' into feature/horizontal_toolbox_port 2016-04-25 14:25:36 -07:00
Neil Fraser 6c0bf9f966 Routine recompile. 2016-04-21 06:05:25 -07:00
Neil Fraser f5988e9109 Merge pull request #341 from rachel-fenichel/cleanup/scrollbar
Constrain scrollbar value in set() and decompose resize() into horizo…
2016-04-21 05:10:37 -07:00
Neil Fraser 3df4173039 Fix infinity in hidden scrollbars. Issue #340. 2016-04-20 17:45:40 -07:00
rachel-fenichel 4bc24fe3e1 Constrain scrollbar value in set() and decompose resize() into horizontal and vertical modes. 2016-04-20 11:26:01 -07:00
rachel-fenichel 84d2388add works in horizontal rtl! 2016-04-19 13:58:58 -07:00
rachel-fenichel 90b1cce5d5 Correctly locate and size scrollbar for all toolbox positions. 2016-04-13 13:56:09 -07:00
Katelyn Mann b11bd4fb71 Remove Blockly.removeAllRanges and replace it with calls to add/remove
css to mark text as unselectable instead.  I can't prove this is
significantly faster with numbers since the call to setup the time out
costs ~.1ms and the call when the timer fires is ~.05.  This happens on almost
every mouse event though.  Plus, it seems to remove a flicker of highlighting when
frames are skipped and keeps scrolling via the scrollbar from highlighting.
2016-03-28 10:06:43 -07:00
Neil Fraser d086634394 Lint and recompile. 2016-03-18 15:19:26 -07:00
picklesrus 2875a2e8a7 Add missing semicolons to methods. Oops. 2016-02-29 15:13:27 -08:00
picklesrus 39653b697d Rearrange code in ScrollbarPair set so that all the getAttribute
calls come before all of the setAttribute calls.  This gets rid
of an unnecessary layout pass on mouseMove events.
2016-02-29 10:22:51 -08:00
Neil Fraser 3bbd46d6d7 Merge branch 'master' into 2016 2016-02-05 18:42:22 -08:00
Neil Fraser acd6af1c45 Add Move event. 2016-02-02 00:28:49 -08:00
Neil Fraser 0027d9294a Double speed of workspace drag. 2016-02-01 16:13:05 -08:00
Rachel Fenichel fa53b8b18e fix scrollbar visibility when horizontal 2016-01-15 16:23:54 -08:00
Neil Fraser 3bce368115 Simplify workspace options by removing svg property. 2016-01-07 17:01:01 -08:00
Neil Fraser 3f8e586fe8 Use prototypes for primitive properties. 2015-09-12 19:31:22 -07:00
Neil Fraser 53f5424801 Skc memory leaks (PR #159) 2015-08-20 15:46:44 -07:00
Neil Fraser 5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
Neil Fraser 0478d308a6 Trivial cleanup. 2015-08-18 11:34:22 -07:00
Neil Fraser 1ca2fdc844 Add classes to svg groups. 2015-07-14 23:13:09 -07:00
Neil Fraser e0f90e6e33 Adding more type documentation. 2015-07-13 15:03:22 -07:00
Neil Fraser 17961f7f58 Support multiple Blockly instances. 2015-04-28 13:51:25 -07:00
Neil Fraser 29976c4c4d Remove outside border from Blockly (issue 92). 2015-04-07 20:27:26 -07:00
Neil Fraser c9addf7e31 Improve accuracy of goog.require calls. 2015-02-06 15:27:25 -08:00
carlosperate b1d3b019f1 Uses closure to check for touchscreens and set the scrollbar thickness accordingly. 2015-01-30 01:18:25 +00:00
Neil Fraser 1c39a638e3 Lint fixes. 2015-01-22 15:58:10 -08:00
Neil Fraser 1fac311224 Convert cumbersome conditionals into calls to goog.getObjectByName. 2014-12-23 17:02:53 -08:00
Neil Fraser 0f8d01209c Headless workspaces and blocks. 2014-12-23 11:22:02 -08:00
Neil Fraser 6539211104 Change official project URL. 2014-10-07 13:09:55 -07:00
Neil Fraser 7122410373 Changing project location from Google Code to GitHub. 2014-09-08 15:18:02 -07:00
Neil Fraser d998a1c8ec Update to latest version. 2014-09-08 14:26:52 -07:00