<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 5: Small improvement to zoom in (zoom out as well).</title><link>https://sourceforge.net/p/wxmathplot/feature-requests/5/</link><description>Recent changes to 5: Small improvement to zoom in (zoom out as well).</description><atom:link href="https://sourceforge.net/p/wxmathplot/feature-requests/5/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 02 Nov 2022 15:26:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wxmathplot/feature-requests/5/feed.rss" rel="self" type="application/rss+xml"/><item><title>Small improvement to zoom in (zoom out as well).</title><link>https://sourceforge.net/p/wxmathplot/feature-requests/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;The majority of graph components I've used zoom in in the same way that wxMathPlot does (click and draw to the right/down to zoom in).  Many of these components also zoom out by clicking and moving left/up.&lt;/p&gt;
&lt;p&gt;I've implemented this in wxMathPlot, the modified function is below if you want to add it (or I'm happy to commit it if I can).&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Tony.&lt;/p&gt;
&lt;p&gt;void mpWindow::OnMouseLeftRelease (wxMouseEvent &amp;amp;event)&lt;br/&gt;
{&lt;br/&gt;
    wxPoint release(event.GetX(), event.GetY());&lt;br/&gt;
    wxPoint press(m_mouseLClick_X, m_mouseLClick_Y);&lt;br/&gt;
    if (m_movingInfoLayer != NULL) {&lt;br/&gt;
        m_movingInfoLayer-&amp;gt;UpdateReference();&lt;br/&gt;
        m_movingInfoLayer = NULL;&lt;br/&gt;
    } else {&lt;br/&gt;
        if (release != press) {&lt;br/&gt;
            if (release.x &amp;lt; press.x &amp;amp;&amp;amp; release.y &amp;lt; press.y){&lt;br/&gt;
                Fit();&lt;br/&gt;
            }&lt;br/&gt;
            else{&lt;br/&gt;
                ZoomRect(press, release);&lt;br/&gt;
            }&lt;br/&gt;
        } /&lt;em&gt;else {&lt;br/&gt;
            if (m_coordTooltip) {&lt;br/&gt;
                wxString toolTipContent;&lt;br/&gt;
                toolTipContent.Printf(_("X = %f\nY = %f"), p2x(event.GetX()), p2y(event.GetY()));&lt;br/&gt;
                SetToolTip(toolTipContent);&lt;br/&gt;
            }&lt;br/&gt;
        } &lt;/em&gt;/&lt;br/&gt;
    }&lt;br/&gt;
    event.Skip();&lt;br/&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Kennedy</dc:creator><pubDate>Wed, 02 Nov 2022 15:26:00 -0000</pubDate><guid>https://sourceforge.net900343528e54f4e84cceea2dda32e974f3414fd8</guid></item></channel></rss>