[wp-trac] [WordPress Trac] #22011: Janky behavior with imageEdit.scaleChanged() in inline image editor
WordPress Trac
noreply at wordpress.org
Thu Nov 15 00:01:56 UTC 2012
#22011: Janky behavior with imageEdit.scaleChanged() in inline image editor
------------------------------------+--------------------
Reporter: DrewAPicture | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: 3.4.2
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+--------------------
Comment (by SergeyBiryukov):
`this.intval()` removes the fractional part, which leads to unwanted
decrementing.
`Math.round()` gives more accurate results and doesn't trigger unwanted
incrementing in my testing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22011#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list