Disable click middle mouse button (autoscroll)

6 views
Skip to first unread message

Ян Жабин

unread,
Feb 4, 2013, 9:38:44 AM2/4/13
to node-...@googlegroups.com
How disable? I know extention for chrome/chromium "Not smooth scrolling" do it. When i press middle button i have two bugs (or features)

1. Trace cursor disappears (sorry my bad english)
2. If i have div with position absosute and width 100% and body (overflow hidden) with border, all content moves beyond the application 

Thanks!
bug.png

张朝滨

unread,
Feb 4, 2013, 10:09:05 AM2/4/13
to node-...@googlegroups.com
Hi,

Can you please provide your node-webkit version?

1. The first one I had fix it with this commit. If your version is 0.4.1, please let me know.
2. Do you mean the middle cursor didn't disappear like chrome? If not, can you please offer me a simple demo to reproduce the problem?

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
------------------
Best Regards 

----------------------------------------------------------------
@zhchbin Chaobin Zhang (张朝滨)
School of Software, Sun Yat-sen University (Zhongshan University)

Ян Жабин

unread,
Feb 4, 2013, 10:18:37 AM2/4/13
to node-...@googlegroups.com
nw:version: node-webkit v0.4.1, build for windows.
Now i make demo

Ян Жабин

unread,
Feb 4, 2013, 10:41:07 AM2/4/13
to node-...@googlegroups.com
I make demo check archive. if you hold middle (scroll) button and move mouse you see that content moves. If you often click middle button in different placeses cursor(move cursor icon) not disappeare

понедельник, 4 февраля 2013 г., 17:09:05 UTC+2 пользователь chaobin.zhang написал:
bug-sample.rar
bug2.png

Ян Жабин

unread,
Feb 4, 2013, 10:43:51 AM2/4/13
to node-...@googlegroups.com
sory demo data big

понедельник, 4 февраля 2013 г., 17:41:07 UTC+2 пользователь Ян Жабин написал:
bin.rar

张朝滨

unread,
Feb 4, 2013, 11:20:46 AM2/4/13
to node-...@googlegroups.com
Hi, 

1.The first question, I test it with the v0.4.1(downloaded just now). The web cursor works find for me, which means trace cursor appear. Only the middle cursor will work as your previous screenshot shows.This is ugly and I will try to remove it.
2.Test your demo on chrome, it is the same as on nw. So I don't think this is a bug of nw, if I got what you mean by "all content moves beyond the application". 



On Mon, Feb 4, 2013 at 11:43 PM, Ян Жабин <iyan...@gmail.com> wrote:
sory demo data big

понедельник, 4 февраля 2013 г., 17:41:07 UTC+2 пользователь Ян Жабин написал:
I make demo check archive. if you hold middle (scroll) button and move mouse you see that content moves. If you often click middle button in different placeses cursor(move cursor icon) not disappeare

понедельник, 4 февраля 2013 г., 17:09:05 UTC+2 пользователь chaobin.zhang написал:
Hi,

Can you please provide your node-webkit version?

1. The first one I had fix it with this commit. If your version is 0.4.1, please let me know.
2. Do you mean the middle cursor didn't disappear like chrome? If not, can you please offer me a simple demo to reproduce the problem?

On Mon, Feb 4, 2013 at 10:38 PM, Ян Жабин <iyan...@gmail.com> wrote:
How disable? I know extention for chrome/chromium "Not smooth scrolling" do it. When i press middle button i have two bugs (or features)

1. Trace cursor disappears (sorry my bad english)
2. If i have div with position absosute and width 100% and body (overflow hidden) with border, all content moves beyond the application 

Thanks!



--

Ян Жабин

unread,
Feb 4, 2013, 11:38:33 AM2/4/13
to node-...@googlegroups.com
Yes, you are right about the 2 question, this is not bug. But if possible, how disable middle mouse button scrolling, becouse a very bad situation if user scroll content and see that you see in screenshot. As a solution i find extention for chrome but, as far as I know extention not supports by node-webkit, so I do not know how to solve this problem. And thank you for taking the attention

понедельник, 4 февраля 2013 г., 18:20:46 UTC+2 пользователь chaobin.zhang написал:

chaobin.zhang

unread,
Feb 4, 2013, 11:54:43 AM2/4/13
to node-...@googlegroups.com
Hi, hers is the simple code to disable the middle mouse click.
<script type="text/javascript">
    document.onmousedown = function(e) {
      if (e.which == 2) {
        e.preventDefault();
      }
    }
</script>

HTH....... @zhchbin

Ян Жабин

unread,
Feb 4, 2013, 12:03:33 PM2/4/13
to node-...@googlegroups.com
Thanks! its was first that i try before request, but this solution not work before because i maybe make mistake in code. Thank you very much!!!

понедельник, 4 февраля 2013 г., 18:54:43 UTC+2 пользователь chaobin.zhang написал:
Reply all
Reply to author
Forward
0 new messages