Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6b18b7ceb | |||
6de8e604f7 | |||
981910fb0a | |||
baa9a262fb | |||
fe1de4a423 | |||
8537061e79 | |||
f6b7467324 | |||
36755400fd | |||
4cf7ec2da1 | |||
4b8e9f5715 | |||
0e99bf0d9e | |||
69bf34f773 |
@ -4,7 +4,6 @@ node_js:
|
||||
script:
|
||||
- "node node_modules/pxt-core/built/pxt.js travis"
|
||||
- "node node_modules/pxt-core/built/pxt.js testdir tests"
|
||||
- "node node_modules/pxt-core/built/pxt.js uploaddoc"
|
||||
sudo: false
|
||||
notifications:
|
||||
email:
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-calliope",
|
||||
"version": "0.5.64",
|
||||
"version": "0.5.69",
|
||||
"description": "calliope target for PXT",
|
||||
"keywords": [
|
||||
"JavaScript",
|
||||
@ -30,7 +30,7 @@
|
||||
"typescript": "^1.8.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"pxt-core": "0.5.47",
|
||||
"pxt-core": "0.5.61",
|
||||
"less": "^2.6.0",
|
||||
"semantic-ui-less": "^2.2.4"
|
||||
}
|
||||
|
@ -1716,8 +1716,9 @@ namespace pxsim.visuals {
|
||||
tiltDecayer = 0;
|
||||
}
|
||||
|
||||
let ax = (ev.clientX - this.element.clientWidth / 2) / (this.element.clientWidth / 3);
|
||||
let ay = (ev.clientY - this.element.clientHeight / 2) / (this.element.clientHeight / 3);
|
||||
let bbox = this.element.getBoundingClientRect();
|
||||
let ax = (ev.clientX - bbox.width / 2) / (bbox.width / 3);
|
||||
let ay = (ev.clientY - bbox.height / 2) / (bbox.height / 3);
|
||||
|
||||
let x = - Math.max(- 1023, Math.min(1023, Math.floor(ax * 1023)));
|
||||
let y = Math.max(- 1023, Math.min(1023, Math.floor(ay * 1023)));
|
||||
|
@ -35,4 +35,7 @@
|
||||
PXT Overrides
|
||||
*******************************/
|
||||
|
||||
@mainMenuHeight: 5rem;
|
||||
@mobileMenuHeight: 5rem;
|
||||
|
||||
@blocklyToolboxColor: #F6F4E6;
|
||||
|
Reference in New Issue
Block a user