other scale

This commit is contained in:
Luis Fernando Molina committed 2020-03-10 19:24:04 +01:00
1 parent d299cbd482
commit 5d4d09d2c7
3 files changed
+43 -4

No files matched your search

+12 -1
View File
@@ -492,7 +492,7 @@ function newFloatingObject () {
}
function initializeFontSize (suggestedValue) {
var size = suggestedValue
let size = suggestedValue
if (size < 3) {
size = 3
}
@@ -502,6 +502,17 @@ function newFloatingObject () {
thisObject.currentFontSize = size / 3
}
function initializeHierarchyRing (suggestedValue) {
let radius = suggestedValue
if (radius < 3) {
radius = 3
}
thisObject.rawHierarchyRing = radius
thisObject.targetHierarchyRing = radius
thisObject.currentHierarchyRing = radius / 3
}
function initializeCurrentPosition (arroundPoint) {
let position = {}
+1 -3
View File
@@ -253,10 +253,8 @@ function newTimeFrameScale () {
}
function onMouseWheel (event) {
delta = event.wheelDelta
if (IS_MAC) {
if (delta < 0) {
if (event.wheelDelta < 0) {
if (wheelDeltaDirection === -1) {
wheelDeltaCounter++
if (wheelDeltaCounter < 5) {
+30
View File
@@ -116,6 +116,36 @@ function newTimeScale () {
}
function onMouseWheel (event) {
if (IS_MAC) {
if (event.wheelDelta < 0) {
if (wheelDeltaDirection === -1) {
wheelDeltaCounter++
if (wheelDeltaCounter < 5) {
return
} else {
wheelDeltaCounter = 0
}
} else {
wheelDeltaCounter = 0
wheelDeltaDirection = -1
return
}
} else {
if (wheelDeltaDirection === 1) {
wheelDeltaCounter++
if (wheelDeltaCounter < 5) {
return
} else {
wheelDeltaCounter = 0
}
} else {
wheelDeltaCounter = 0
wheelDeltaDirection = 1
return
}
}
}
if (event.shiftKey === true) {
autoScaleButton.container.eventHandler.raiseEvent('onMouseWheel', event)
return