don't allow the top view to be scrolled

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15278 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-12-01 21:32:45 +00:00
parent 7943e1a86d
commit 0bbd104a7d
@@ -331,7 +331,7 @@ WindowLayer::ScrollViewBy(ViewLayer* view, int32 dx, int32 dy)
// from executing this at the same time as the window
// is doing something else here!
if (!view || (dx == 0 && dy == 0))
if (!view || view == fTopLayer || (dx == 0 && dy == 0))
return;
if (fDesktop && fDesktop->ReadLockClipping()) {