﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7080	clear selection cause window scroll	yiminghe		"happen in ie6

steps:
1.place a button far below editor :


{{{
<textarea id='test'></textarea>
<div style='height:1500px;'></div>
<button>click</button>
<script>CKEDITOR.replace(""test"");</script>
}}}

2.insert a page-break('插入分页符') into editor

3.keep focus（cursor） in the editor and scroll to 'click button' using mouse wheel

4.click button

expected :

window does not scroll

actual :

window scrolls to editor


reason :

caused by line 184 in _source/plugins/selection/plugin.js

doc.selection.empty() causes scrolling.

we should record scrollTop and scrollLeft before empty() and restore them after empty() , i provide a patch ,hope helpful.


 
 "	Bug	confirmed	Normal		Core : Selection	3.2.1		IE6 IE7	
