User Pass
Home Sign Up Contact Log In
Forum > Discuss GLB Issues With Catch22 > NOT A BUG - CLOSED > Display error: Attributes unrounding
hairic
offline
Link
 
This is only a display error (JS, IMO), so it's not persistent across changing pages. Oh, and I can reproduce it.

1.) Get skills points to use.
2.) Click the + button very quickly.
3.) After two clicks, the number should unravel.

Result: [img]http://img388.imageshack.us/img388/7579/bugvc8.jpg[/img]
http://img388.imageshack.us/img388/7579/bugvc8.jpg
Not sure if you added bbcode to your forum, so I left a direct link for easier copy/paste.

Just change pages to get back to the original. I imagine it's happening because you're clicking faster than Javascript can calculate. So you could just put another rounding function at the end of every click event or something (e.g. "var.toFixed(2)").

I dunno, I didn't check the JS to look at how, where, or if rounding is done. You could be rounding in Perl with no JS rounding at all (assuming it wouldn't eff with your numbers if you're just doing simple +/-).
Last edited Mar 20, 2008 14:48:53
 
Bort
Admin
offline
Link
 
Originally posted by hairic
This is only a display error (JS, IMO), so it's not persistent across changing pages. Oh, and I can reproduce it.

1.) Get skills points to use.
2.) Click the + button very quickly.
3.) After two clicks, the number should unravel.

Result: [img]http://img388.imageshack.us/img388/7579/bugvc8.jpg[/img]
http://img388.imageshack.us/img388/7579/bugvc8.jpg
Not sure if you added bbcode to your forum, so I left a direct link for easier copy/paste.

Just change pages to get back to the original. I imagine it's happening because you're clicking faster than Javascript can calculate. So you could just put another rounding function at the end of every click event or something (e.g. "var.toFixed(2)").

I dunno, I didn't check the JS to look at how, where, or if rounding is done. You could be rounding in Perl with no JS rounding at all (assuming it wouldn't eff with your numbers if you're just doing simple +/-).


I'd have to look through the JS again to see what it's doing regarding rounding - though it just adds/subtracts 1's to whatever value is there. I guess maybe the browser's JS engine screws up the precision if it adds really fast or something? You're probably right though - there probably needs to be another rounding call done to avoid precision errors.
 
Serenity
offline
Link
 
i've had it before on occasion, but no big deal imo
 
Bort
Admin
offline
Link
 
Originally posted by Serenity
i've had it before on occasion, but no big deal imo


Should still be fixed though - I'm obsessive when it comes to dumb little bugs like that.
 
Jed
offline
Link
 
Yea, I've seen that too, it's only when adding to skills, and as soon as you hit "Submit," it fixes itself.
 
RMiller517
offline
Link
 
Thread locked by moderator.
 


You are not logged in. Please log in if you want to post a reply.