Skip to content

Commit bf78300

Browse files
committed
scrolling back in action
1 parent 8f2e6cc commit bf78300

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/assets/javascripts/backbone/helpers/channels.js.coffee

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ class Kandan.Helpers.Channels
1818

1919
@scrollToLatestMessage: (channelId)->
2020
console.log("scrolling to last message");
21-
$('document').scrollTop($('document').height()+900)
22-
#@channel_activities_el(channelId).parent().scrollTop(100000)
21+
$(document).scrollTop($(document).height()+9000)
2322

2423
@currentScrollPosition: (channelId)->
2524
console.log("current scroll position");
26-
$('document').scrollTop()
27-
#@channel_activities_el(channelId).parent().scrollTop()
25+
$(document).scrollTop()
2826

2927
@channel_activities_el: (channelId)->
3028
$("#channel-activities-#{channelId}")

0 commit comments

Comments
 (0)