Wykres commitów

125 Commity (83624c2f4e560df02ab8a7eceacab48c4b804562)

Autor SHA1 Wiadomość Data
Jens Mönig 4921597b1c
Merge pull request #2470 from jmoenig/fix-scrollframe-bars
Accounts for the scrollbars in ScrollFrameMorphs.
2019-08-06 09:24:54 +02:00
jmoenig 7564dca5fc updated version history 2019-08-06 08:59:55 +02:00
Michael Ball b7bf8bab1a Accounts for the scrollbars in ScrollFrameMorphs.
This ensures that the stopping point of the scrollbar is beyond the length of
the contents that it is scrolling, and that when scrolling is calculated, it
will now account for the presence of a scrollbar. This allows
you to scroll a little extra so you can always see all content.

Fixes #2468
Fixes #638
Fixes #804
2019-08-05 01:28:35 -07:00
Bernat Romagosa a73c562b11 fixes importing OGGs in Firefox 2019-07-29 10:19:44 +02:00
jmoenig 421c5dafd5 updated credits 2019-07-23 15:58:01 +02:00
jmoenig 5795f18883 updated credits, prepared maintenance release
mentioning @swiperthefox , @DarDoro and @ToonTalk for their contributions to IME support
2019-07-23 09:17:12 +02:00
jmoenig e652c32162 upated morphic credits
with mentions of @swiperthefox, @DarDoro and @bromagosa
2019-07-23 09:02:49 +02:00
jmoenig 3d3e098103 minor code reformatting for LINTers 2019-07-23 08:00:07 +02:00
jmoenig 159196113e updated version history 2019-07-22 19:08:02 +02:00
Jens Mönig e90ec0fa5d
Merge pull request #2322 from swiperthefox/hidden-textarea-ime
Provide IME support to text editing using hidden textarea
2019-07-22 18:39:39 +02:00
Zhenlei Jia e42ccf1b53 resolved conflicts to push to github. 2019-07-11 09:05:49 -04:00
Zhenlei Jia d8e2bc3129 1. The underlying textarea now listens to "input" event, and update the content of target morphic
accordingly.
2. The textarea still listens to "keydown" and "keyup" events, for the following puerpose:
"keydown" event handler will detech some system shortcuts, add will pass it to "the world".
"keyup" event handler is used to capture the change of selection status and cursor position of the
textarea (which is not captured in the above "input" event), and update the target morphic.
2019-07-11 08:38:51 -04:00
jmoenig 0e9e9a05a7 experimental tolerant color collision detection (in dev mode) 2019-07-08 12:32:29 +02:00
jmoenig 71f3b37f14 optimized collision detection
by only looking at the alpha channel data
2019-07-02 16:50:11 +02:00
jmoenig f0c192778c fixed a race condition in Morph.glideTo() 2019-07-01 19:03:11 +02:00
jmoenig 780d5256d2 use "event.key" to detect (+) and (-) keystrokes across browsers 2019-05-21 23:09:11 +02:00
Zhenlei Jia 1c5d6970a9 Fix a bug that a single key stroke will be escalated twice. 2019-02-12 08:17:55 -05:00
Zhenlei Jia e972ae0ccd Set the right cursor position at the start of editing.
I assumed that all editing start with the whold content being selected.
The project note editor shows that this assumption might not be sure.
Added code in initializeTextarea to get the cursor right at the start
of editing.
2019-02-08 20:58:40 -05:00
Zhenlei Jia aabdfeade6 Provide IME support to the text editing in Snap.
1. Design Outline:

Three parties are involved:
- the target: the StringMorph/TextMorph to be edited
- the editor: the hidden textarea
- the manager: the CursorMorph

The manager takes care of the lifecycle of the editor, and provide visual
presentation of the cursor.

The editor holds the content being edited, handles keyboard events, perform
the required editing, then update the target with the result of editing.

The target handles mouse events, which result into changes of cursor position
and selection status, then it will update the editor with these information.

2. Change of WorldMorph.edit(target) method

At the start of the method, added two guards to check:
- if `target` is actually currently being edited, do nothing.
- if another morph is being edited, call stopEditing().
- ... the old codes

This is to fix a bug in mouse event handling. The bug is that shift+click does not
select the text between the clicked position and previous position, instead
all text wiil be selected.

The cause of this bug is the morph that being edited called stopEditing() and then
.edit(), which starts a new editing session, and the previous selection state is lost.
By adding above mentioned guard, the force restart will be avoid.
2019-02-08 10:54:03 -05:00
jmoenig 22e12c834a simplified and optimized Node>>parentThatIsA / parentThatIsAnyOf 2019-02-07 09:48:17 +01:00
jmoenig 6275793507 recognize data sets in dropped text files (csv, json) 2019-01-10 15:28:57 +01:00
jmoenig 2f268ed3b7 added option to include alpha in color comparison 2019-01-09 08:37:08 +01:00
jmoenig e8f134fbe3 fixed glitch in WorldMorph >> getGlobalPixelColor 2019-01-01 15:41:51 +01:00
jmoenig 0bb72fbbdb added HSL color conversion support to Morphic
and updated Morphic documentation
2019-01-01 15:25:50 +01:00
jmoenig 258e476e5f moved *.js files into subfolder "src"
and edited gui.js to deal with ypr.js
2018-10-02 15:48:42 +02:00