I'm building a Drupal 7 version of this module for a site. Would anyone be interested in me contributing it?

CommentFileSizeAuthor
#3 jscrollpane.zip10.26 KBopdavies

Comments

Baber Javed’s picture

+1

firnas’s picture

count me

opdavies’s picture

Status: Active » Needs review
StatusFileSize
new10.26 KB

Please find attached my unofficial 7.x-1.x-dev version. I'd definitely be interested in getting this committed into the module officially, and I don't mind supporting this version. Actually, I wouldn't mind re-writing the 6.x version and managing that too if no-one else is currently maintaining the module (it's been a while since the last commit).

You can see this module working at http://wlsquared.oliverdavies.co.uk/ - the site is still in development, but the jScrollPane effect is working fine on the front page!

Thanks,

Oliver

hexag’s picture

Hi Oliver,

Awesome, this is just what I was looking for, good luck with getting it committed to a proper dev version :)

opdavies’s picture

No problem!

Thanks,

Oliver
http://oliverdavies.co.uk

amitaibu’s picture

Here's my version on github -- https://github.com/amitaibu/jscrollpane

joemoraca’s picture

any documentation? I tried to get it to work - no luck

amitaibu’s picture

> any documentation? I tried to get it to work - no luck

Added readme -- https://github.com/amitaibu/jscrollpane/blob/7.x-1.x/README.txt

fallenturtle’s picture

Is there something extra special I need to get this to work? I've added this code to my html.tpl.php right at the end of the head:

  		<script type="text/javascript">
function example_init() {
  // foo class will get default scroll.
  $commands[] = array('selector' => '.scroll-pane');
 
  // bar ID will get scroll with min and max scroll set to 80px.
  $commands[] = array(
   'selector' => '#bar',
   'options' => array(
     'verticalDragMinHeight' => 80,
     'verticalDragMaxHeight' => 80,
   ),
  );
 
  jscrollpane_add_jscroll($commands);
}
		</script>

scroll-pane is the css selector I'm using.

Firebug is telling me this is a syntax error:
$commands[] = array('selector' => '.scroll-pane');

opdavies’s picture

Status: Needs review » Closed (fixed)

The 7.x-1.x-dev release is now available on the project page.