<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: $(window).scroll not setting event? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/window-scroll-not-setting-event/m-p/1766929#M13631</link>
    <description>&lt;P&gt;Problem was a compatibility with scroll event in Edge, Needs to be bind to the 'wheel' event instead.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 08:46:59 GMT</pubDate>
    <dc:creator>peachman</dc:creator>
    <dc:date>2020-12-08T08:46:59Z</dc:date>
    <item>
      <title>$(window).scroll not setting event?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/window-scroll-not-setting-event/m-p/1766911#M13630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been trying to make an extension with a scroll event, however the event doesn't seem to bind to the window object. Below is my code. Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;		paint: function ($element, layout) {
			//add your rendering code here
			
            $element.empty();
            let self = this;
			var source = "'//open.spotify.com/embed?uri=" + layout.uri +"&amp;amp;theme=" + layout.theme + "'";
			$element.html("&amp;lt;iframe src=" + source + " width=100% height=100% frameborder=0 allowtransparency=true&amp;gt;&amp;lt;/iframe&amp;gt;");
			
			$( '&amp;lt;style&amp;gt;' ).html(xmas).appendTo( 'head' );
			
			$('.object-and-panel-wrapper').addClass('fadein');
			
				//$('.fadein').bind('DOMMouseScroll MouseScrollEvent MozMousePixelScroll wheel scroll', function(i){
					$(window).scroll(function(e){ //Not working
            		var bottom_of_element = $(this).offset().top + $(this).outerHeight();
            		var bottom_of_window = $(window).scrollTop() + $(window).height();
            		if( bottom_of_window &amp;gt; bottom_of_element ){
                		$(this).animate({'opacity':'1'},1000);
            		}         
        		});
        		
    		});
			
			var sheet = $('#grid-wrap');
			sheet.addClass('r2');
			sheet.addClass('r1');
			
			//needed for export
			return qlik.Promise.resolve();
		}	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/window-scroll-not-setting-event/m-p/1766911#M13630</guid>
      <dc:creator>peachman</dc:creator>
      <dc:date>2024-11-16T00:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: $(window).scroll not setting event?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/window-scroll-not-setting-event/m-p/1766929#M13631</link>
      <description>&lt;P&gt;Problem was a compatibility with scroll event in Edge, Needs to be bind to the 'wheel' event instead.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 08:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/window-scroll-not-setting-event/m-p/1766929#M13631</guid>
      <dc:creator>peachman</dc:creator>
      <dc:date>2020-12-08T08:46:59Z</dc:date>
    </item>
  </channel>
</rss>

