Andrew n marshall
10108cc697
jsdoc corrections ( #874 )
2017-01-26 17:33:55 -08:00
picklesrus
8aa8b1b3ba
Add ability to add a class to a scrollbar so that different types of … ( #837 )
...
* Add ability to add a class to a scrollbar so that different types of scrollbars can
be distinguished from each other. You used to be able to do this by looking at the parent
element but now all the scrollbars are siblings in the dom.
Also, use this new class to fix #816 so that layering of the flyout and workspace scrollbars
are done correctly.
2017-01-18 13:02:08 -08:00
picklesrus
91938c3fb8
Use the drag surface when scrolling using the scrollbars. #783 ( #789 )
2017-01-03 10:02:28 -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
Neil Fraser
f6aef459fc
API-breaking cleanup. But doubtful anyone will be affected. ( #748 )
...
* Make add/removeClass return whether they did anything.
* Move more functions onto utils.
* Move bind functions to Blockly.
* Routine recompile.
2016-11-15 13:54:33 -08:00
Neil Fraser
6300faf85e
Set main workspace when scrollbar clicked. Issue #704
2016-10-23 20:31:59 -07:00
Rachel Fenichel
ed983333eb
bindEventWithChecks_ for internal use, and bindEvent_ with old behaviour but deprecated
2016-09-23 13:46:11 -07:00
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