<div dir="ltr"><div>The purpose of getting the nearest was for when a selected plank is completely removed, and the selection focus needs to jump somewhere sane, so it is only used in an edge-case.<br><br></div>But in that edge case, I probably should do find_plank_at_screen_pos() first, and only fall back to find_plank_nearest_screen_pos() if the first fails.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 6, 2017 at 6:12 AM, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you really want to select the "nearest" selectable slice (which means "with the nearest center", which is irrelevant in this case and isn't the nearest slice!) when there are multiple overlapping? Wouldn't it be better to select the top-most one?<div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On 6 September 2017 at 10:15,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.co<wbr>m</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">james<br>
2017-09-05 15:15:08 -0700 (Tue, 05 Sep 2017)<br>
158<br>
Add find_plank_at_screen_pos() which, in contrast to find_plank_nearest_screen_pos(<wbr>)<br>
requires the slice to be visible and to actually collide with the targpos<br>
---<br>
U   wip/plankmenu.bas<br>
U   wip/<a href="http://plankmenu.bi" rel="noreferrer" target="_blank">plankmenu.bi</a><br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div>