fixed skipping of ribbons outside of viewer area...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>