Hi Max,
i found a bug in nodeeditor...
if you have a slider or knob you can change values with the mousewheel - but if you use a MagicMouse2 or a trackpad it causes NaN if you scroll sideways...
if i go to interface.js and delete all the:
############
WidgetKnob.prototype.onMouseWheel = function(e)
{
var v = this.internal.position;
var delta = e.wheelDeltaY/Math.abs(e.wheelDeltaY)/100;
var time = LiteGraph.getTime();
if ( time - this.local.wheelTime < 50 ) { delta *=5 }
else if ( time - this.local.wheelTime < 100 ) { delta *=2; }
this.local.wheelTime = time;
v += delta;
if (v> 1.0) { v = 1.0 } else if (v < 0.0) { v = 0.0 }
this.internal.position = v;
this.properties.value = this.properties.min + (this.properties.max - this.properties.min) * this.internal.position;
this.properties.value = this.properties.value.toFixed(this.properties.digits);
this.updateThisNodeGraph();
this.graph.setisChangedFlag(this.id);
}
############
No more Mousewheel ;-(
but no more NaNs :-)
THX for nodeeditor!!
Ralf:)
looking for moments of inspiration... |