php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56153 Make overflow:auto elemets scrollable in Mozilla
Submitted: 2004-07-30 12:03 UTC Modified: 2006-06-08 22:12 UTC
From: mike@php.net Assigned:
Status: No Feedback Package: PECL website (PECL)
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike@php.net
New email:
PHP Version: OS:

 

 [2004-07-30 12:03 UTC] mike@php.net
Description:
------------
Pleas consider applying a patch with similar functionality to make "overflow:auto" elements scrollable in Mozilla (like on the main stats page).

Reproduce code:
---------------
<script type="text/javascript"> <!--
	// enable scrolling for overflow:auto elements in Mozilla
	function scrollMe(event)
	{
		var st = event.currentTarget.scrollTop + (event.detail * 12);
		event.currentTarget.scrollTop = st < 0 ? 0 : st;
		event.preventDefault();
	}
	if (document.body.addEventListener) {
		var divs = document.getElementsByTagName('DIV');
		for (var d in divs) {
			if (divs[d].className && divs[d].className == 'scroll') {
				try {
					divs[d].addEventListener('DOMMouseScroll', scrollMe, false);
				} catch (ex) {}
			}
		}
	}
	// -->
</script>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-02 13:45 UTC] mike@php.net
Please let me know if you need any assistance.

Cheers
 [2006-02-18 10:41 UTC] pajoye@php.net
What's the status of this report?
 [2006-06-08 22:12 UTC] pajoye@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC