Swipe to close panel also triggers click button events

Swipe to close panel also triggers click button events

To whom it may concern,

I'm working with panels currently using JQM 1.3.1 and I'm finding an issue with it's swipe to close event handler when I set the panel to not be dismissible.

If I have a button or onclick event handler on the panel and I were to swipe over that area to close the panel, the onclick event is also triggered which is not ideal.

This is what I have so far.

HTML
  1. <a data-role='button' href='#rightPanel'>OPEN</a>
  2. <div data-role='panel' id="rightPanel" class="rightPanel" data-position="right" data-display="overlay" data-dismissible="false" data-theme='d'>
  3.     <ul data-role='listview' data-inset='true'>
  4.         <li onclick='test();'>TEST</li>
  5.     </ul>
  6.     <a data-role='button' onclick='test();'>OPEN</a>
  7. </div>
JavaScript
  1. function test(){
  2.     alert(1);   
  3. }
A live example can be found at link

Is there anyway that I can stop the onclick event from also triggering when I try to swipe the panel to close it?