The Official Blog of Patcoola

Im just a dude watching over my parents,
and trying to make cartoons and video games from home.

R&D: Blocking the Middle Click Scroll Handle 2013/11/04

Important!

Dear visitors,

This blog and the Tigarus.com network will be changing our website software in May (2024). There will be some down time and there will be a change to the webpage addresses.

We will also be removing the Anime blogs. The Rocksmith Songs website will be unavailable of a few weeks or months while I move the database to the new software.

At the moment we are running on Wordpress, the new software is an in-house project which is 57 times faster. It will also provide more freedom for development.

Thank you for understanding.

, By Patcoola

Left click, Middle click, Right click, disabling the Web browser’s default action for creating Web Applications and Games provides a range of possibilities. However, the ability to override such a features depends completely on the Web browser itself.

Test Browsers:

  • FireFox 3.5, 9, 15, 25
  • Opera 12
  • IE 7, 8, 9, 10
  • Chrome 20, 30

The challenge; The ability to override the Web browser’s default middle click action depends on the Web browser.

Note: AppleWebKits based Web browsers (Safari/Chrome), version 412 and earlier can only detect Left Clicks.

Advertisement

Donate Now!

I don't always use the women's bathroom, but when I do, you can bet it really smells. If you like my blog, please consider donating.


Disabling the middle click action

FireFox does not allow the ability to override the middle click action, but the button is detectable. However, the scroll handle only fires when the scrollable area has a scroll area and does not fire if no scrollable area is present.

Opera fires the scroll handle regardless if there is no scrollable area present.

IE 9 and 10 can disable the scroll handle.

IE 8 only fires the scroll handle if there is a scrollable area present.

IE 7 fires the scroll handle regardless if there is no scrollable area present.

Chrome can disable the scroll handle.

Work around, we can trick some Web browsers into seeing no scrollable area. Note: iFrames with no scrollable area do not provoke the scroll handle if middle clicked on. We can create what is known as a iFrame layer to cover the Web browser’s viewable area, thus preventing the scroll handle.

Web browsers supporting iFrame work around:

  • IE 8
  • FireFox

 

Advertisement

Donate Now!

Hi there, I spend a lot of time making this blog.

It would be great if you would consider donating.


 

Post Meta

Share Post

 

Comments: Write Comment

Be the first to write a comment.


Leave a Comment


All comments are reviewed before publishing. Comments must be related to the page topic, must not be spam, and must comply with the criminal code of Canada.