fix for #117

fixed as proposed in discussion https://github.com/vitch/jScrollPane/issues/117