Giter Site home page Giter Site logo

maazali / meteor-malihu-custom-scrollbar Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 47 KB

A wrapper for Malihu Custom Scrollbar. Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.

CSS 36.90% JavaScript 63.10%

meteor-malihu-custom-scrollbar's People

Contributors

maazali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

meteor-malihu-custom-scrollbar's Issues

Malihu Custom Scroller: JQuery Old: $(window).load VS New: $(window).on("load" issue.

Hi There MaazAli,
I hope all is well.
Thanks for putting the Malihu Custom Scroller package up on atmosphere, much appreciated.
I added the meteor package and ran into a bit of a problem with the jquery Old: $(window).load VS New: $(window).on("load"
The scroller doesn't seem to function very well and gives me a: Uncaught TypeError: url.indexOf is not a function at jQuery.fn.init.jQuery.fn.load ERROR,
Here's Malihu's comments on the issue.
https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/460
I believe if you update your your meteor version of Malihu Custom Scroller from 3.1.3 to 3.1.5 that it should solve this issue.
Let me know if I'm headed in the right direction on this.
Cheers
TJ

Loads fine when the page is browsed too directly, however problem with iron router?

HTML CODE:
https://gist.github.com/ChrisJGayle/41f6ed2ee4e0cb1f634b

JS CODE:
Template.content.onRendered(function () {
$("#content").mCustomScrollbar({theme:"my-theme"});
console.log('Scrollbar initialized.');
});

CONSOLE:
Scrollbar initialized.
Exception from Tracker recompute function: undefined
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

If I use the browse bar and hit enter to navigate to a page, everything works fine.

Whenever I click to navigate through the application using these links;
https://gist.github.com/ChrisJGayle/24669c4ded6bc55faf80

I am met with the above error, also nothing is shown at all as it should with {{> yield}}

Has anyone experienced this? Or able to tell me where I have went wrong?

custom scrollbar on body

Can I see an example of using this to add a custom scrollbar to the body of my page? I can't seem to get it to work.

Strange error...

I have installed your Meteor package and initialized using:

$(".box-item-scroll-area").mCustomScrollbar();

which is located in the onRendered Meteor event for the template that continas the DIV 'box-item-scroll-area'.

I am getitng the following error:

Error: Exception from Tracker afterFlush function:

> Before: 1062ms (diff: 1062ms)
    at usePostMessage (setimmediate.js:111)
    at setimmediate.js:140
    at meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:415
    at meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:1086
reporters.js?1438381758997:67 Error: TypeError: Cannot read property 'scrollHeight' of null
    at autoAdjustTextareaHeight (http://tidee-vm/client/lib/startup.js?cb920646e28c09b0e647325193367a1bdc9bcadf:81:70)
    at null.<anonymous> (http://tidee-vm/client/boxPage.js?da47af918b800d6fa06d59dae1f82a029ab061f1:885:5)
    at http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3155:22
    at Function.Template._withTemplateInstanceFunc (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12)
    at fireCallbacks (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3151:12)
    at null.<anonymous> (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3244:5)
    at http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1778:14
    at Object.Blaze._withCurrentView (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2197:12)
    at http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1777:15
    at Object.Tracker._runFlush (http://tidee-vm/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:501:11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.