| 1366 | |
| 1367 | /// <inheritdoc /> |
| 1368 | public override bool OnMouseWheel(Float2 location, float delta) |
| 1369 | { |
| 1370 | if (base.OnMouseWheel(location, delta)) |
| 1371 | return true; |
| 1372 | |
| 1373 | // Multiline scroll |
| 1374 | if (IsMultiline && _text.Length != 0 && IsMultilineScrollable) |
| 1375 | { |
| 1376 | if (Input.GetKey(KeyboardKeys.Shift)) |
| 1377 | TargetViewOffset = Float2.Clamp(_targetViewOffset - new Float2(delta * 20.0f, 0), Float2.Zero, new Float2(_textSize.X, _targetViewOffset.Y)); |
| 1378 | else |
| 1379 | TargetViewOffset = Float2.Clamp(_targetViewOffset - new Float2(0, delta * 10.0f), Float2.Zero, new Float2(_targetViewOffset.X, _textSize.Y - Height)); |
| 1380 | |
| 1381 | return true; |
| 1382 | } |
| 1383 | |
| 1384 | // No event handled |
| 1385 | return false; |
| 1386 | } |
| 1387 | |
| 1388 | /// <inheritdoc /> |
| 1389 | public override bool OnCharInput(char c) |