Improvement arrow keys to move charts

This commit is contained in:
Luis Fernando Molina committed 2020-03-02 15:10:00 +01:00
1 parent df176c3a18
commit d4f6394a52
5 files changed
+72 -15

No files matched your search

+15
View File
@@ -22,6 +22,8 @@ function newTimeMachine () {
rateScale: undefined,
payload: undefined,
edgeEditor: undefined,
onFocus: undefined,
onKeyPressed: onKeyPressed,
timelineCharts: [],
fitFunction: fitFunction,
physics: physics,
@@ -157,6 +159,10 @@ function newTimeMachine () {
callBackFunction()
}
function onKeyPressed (event) {
thisObject.edgeEditor.onKeyPressed(event)
}
function onMouseOver (event) {
drawScales = true
@@ -391,6 +397,15 @@ function newTimeMachine () {
syncWithDesigner()
}
panelPhysics()
onFocusPhysics()
}
function onFocusPhysics () {
if (thisObject.edgeEditor.isMouseOver === true) {
thisObject.onFocus = true
} else {
thisObject.onFocus = false
}
}
function panelPhysics () {