1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00
This commit is contained in:
jules 2007-08-02 15:15:16 +00:00
parent 4cf237c6fc
commit c6a2024e30
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ public:
{
if (e.mods.isCtrlDown() || e.mods.isAltDown())
{
const double factor = (ix > 0) ? 2.0 : 0.5;
const double factor = (iy > 0) ? 2.0 : 0.5;
panel->setZoom (panel->getZoom() * factor, e.x, e.y);
}

View file

@ -212,7 +212,7 @@ void MagnifierComponent::setScaleFactor (double newScaleFactor)
{
jassert (newScaleFactor > 0.0); // hmm - unlikely to work well with a negative scale factor
newScaleFactor = jlimit (0.001, 1000.0, newScaleFactor);
newScaleFactor = jlimit (0.1, 1000.0, newScaleFactor);
if (scaleFactor != newScaleFactor)
{