mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
throttle hover for less epileptic experience and better perf
Otherwise the sidebar flashes so fast that it makes no sense while distracting the user and lagging due to heavy sidebar construction.
This commit is contained in:
@@ -32,6 +32,8 @@ iD.ui.Sidebar = function(context) {
|
||||
}
|
||||
};
|
||||
|
||||
sidebar.hover = _.throttle(sidebar.hover, 200);
|
||||
|
||||
sidebar.select = function(id, newFeature) {
|
||||
if (!current && id) {
|
||||
featureListWrap.classed('inspector-hidden', true);
|
||||
|
||||
Reference in New Issue
Block a user