Micusoft / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

Using numbers with the wheels option sticks with the mouse #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  use a basic select implementation with the example code for the wheels 
option.
2.  try to slide the number scroller first in the browser.

What is the expected output? What do you see instead?
When I slide the number picker, I expect it to land on a number.  
Instead,  it will continue to slide up and down with your mouse.
Additionally, I see an error in the console,
mobiscroll.select-2.0.js:58 - TypeError: 'undefined' is not an object 
(evaluating 'inst.temp[0].replace')

What version of the product are you using? On what operating system?
MobiScroll.core-2.0, OSX 7 Lion, 

Please provide any additional information below.
Appreciate any help you got.  Great work otherwise.

Original issue reported on code.google.com by ark...@gmail.com on 16 Jun 2012 at 4:56

GoogleCodeExporter commented 8 years ago
Can you post or link (jsfiddle) an example code?

Original comment by diosla...@gmail.com on 19 Jun 2012 at 12:50

GoogleCodeExporter commented 8 years ago
Absolutely.  

http://jsfiddle.net/arkany/2d5Pk/6/embedded/result/

Sorry for the delay, this is for a side project and I've been under the weather.

I'm using the uncompressed core and select js and then emulating the example 
for the options.

Original comment by ark...@gmail.com on 24 Jun 2012 at 5:26

GoogleCodeExporter commented 8 years ago
You don't need to use the select preset in this case. Select preset is useful, 
when you want to convert a standard html select into mobiscroll (only one wheel)

In your case you have custom wheels, you need only mobiscroll core.

Here is a working example: http://jsfiddle.net/dioslaska/dMvrp/1/

If you want different formatting of the input value, check the formatResult and 
parseValue options.

Original comment by diosla...@gmail.com on 25 Jun 2012 at 6:51

GoogleCodeExporter commented 8 years ago
Sorry for not commenting until now.  You are absolutely correct.  Thank you so 
much!

Original comment by ark...@gmail.com on 10 Sep 2012 at 6:10