mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Merge remote branch 'origin/master'
This commit is contained in:
commit
5ddb8e22d3
2 changed files with 4 additions and 2 deletions
|
@ -287,8 +287,10 @@
|
|||
|
||||
var layer = document.activeLayer;
|
||||
function onKeyDown(event) {
|
||||
if (event.key == 'space')
|
||||
if (event.key == 'space') {
|
||||
layer.selected = !layer.selected;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
|
|
|
@ -127,7 +127,7 @@ var ToolEvent = this.ToolEvent = Base.extend({
|
|||
// Instead, keep calculating the delta each time, so the result can be
|
||||
// directly modified by the script without changing the internal values.
|
||||
// We could cache this and use clone, but this is almost as fast...
|
||||
return this._delta && this.tool.lastPoint
|
||||
return !this._delta && this.tool.lastPoint
|
||||
? this.tool.point.subtract(this.tool.lastPoint)
|
||||
: this._delta;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue