mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
🔥
This commit is contained in:
parent
8319eae0d7
commit
f7b82f2411
@ -1043,13 +1043,6 @@ class TextEditorPresenter
|
||||
hasPixelPositionRequirements: ->
|
||||
@lineHeight? and @baseCharacterWidth?
|
||||
|
||||
pixelPositionForScreenPositionInTile: (tileStartRow, screenPosition, clip) ->
|
||||
position = @pixelPositionForScreenPosition(screenPosition, clip)
|
||||
position.top -= tileStartRow * @lineHeight
|
||||
position.top += @scrollTop
|
||||
position.left += @scrollLeft
|
||||
position
|
||||
|
||||
pixelPositionForScreenPosition: (screenPosition, clip=true) ->
|
||||
screenPosition = Point.fromObject(screenPosition)
|
||||
screenPosition = @model.clipScreenPosition(screenPosition) if clip
|
||||
|
Loading…
Reference in New Issue
Block a user