editor: Fix zoom issues

Rounding on floating point calculations prevented from zooming out.

Signed-off-by: Guillaume Clement <gclement@baobob.org>