mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-09 04:30:09 +00:00
This commit is contained in:
parent
4cf237c6fc
commit
c6a2024e30
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue